diff --git a/qadence/operations/ham_evo.py b/qadence/operations/ham_evo.py index 7435598f..081d9797 100644 --- a/qadence/operations/ham_evo.py +++ b/qadence/operations/ham_evo.py @@ -64,6 +64,7 @@ class HamEvo(TimeEvolutionBlock): from qadence import X, HamEvo, PI, add, run from qadence import FeatureParameter, TimeParameter import torch + from pyqtorch.utils import SolverType n_qubits = 3 @@ -86,7 +87,8 @@ class HamEvo(TimeEvolutionBlock): # Adding noise operators noise_ops = [torch.eye(2**n_qubits, dtype=torch.complex128)] hevo = HamEvo(hamiltonian, parameter=t, noise_operators=noise_ops) - state = run(hevo, values = {"duration": torch.tensor(1.0)}) + config = {"ode_solver": SolverType.DP5_ME, "n_steps_hevo": 100} + densitymat = run(hevo, values = {"duration": torch.tensor(1.0)}) ``` """