Skip to content

Commit 4e889e2

Browse files
committed
Print print print
1 parent 059d10a commit 4e889e2

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

qutip/solver/integrator/scipy_integrator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def _one_step(self, t):
449449
if t > self._front and t_ode >= self._front:
450450
# The state is at self._front, do a step
451451
self._back = self.get_state()
452-
print(' --- THERE --- ')
452+
print(' --- THERE --- ', t)
453453
print(self._ode_solver._y)
454454
print(self._ode_solver.y)
455455
self._ode_solver.integrate(min(self._front + safe_delta, t))

qutip/solver/multitraj.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ def step(
138138
"""
139139
if not self._integrator._is_set:
140140
raise RuntimeError("The `start` method must called first.")
141+
print('before args change: ', self._integrator._ode_solver._y)
141142
self._argument(args)
143+
print('after args change: ', self._integrator._ode_solver._y)
142144
_, state = self._integrator.integrate(t, copy=False)
143145
return self._restore_state(state, copy=copy)
144146

qutip/tests/solver/test_mcsolve.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ def test_MCSolver_stepping():
523523
assert qutip.expect(qutip.qeye(size), state) == pytest.approx(1)
524524
assert qutip.expect(qutip.num(size), state) == pytest.approx(size - 1)
525525
assert state.isket
526+
print('c', solver._integrator._integrator._ode_solver._y)
526527
state = solver.step(5, args={'coupling': 5})
527528
assert qutip.expect(qutip.qeye(size), state) == pytest.approx(1)
528529
assert qutip.expect(qutip.num(size), state) <= size - 1

0 commit comments

Comments
 (0)