Skip to content

Commit

Permalink
fix docstr hamevo
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles MOUSSA committed Nov 25, 2024
1 parent 40d32f5 commit aa4e12a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qadence/operations/ham_evo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)})
```
"""

Expand Down

0 comments on commit aa4e12a

Please sign in to comment.