Skip to content

Commit

Permalink
Minor fix in the documentation for qutip5
Browse files Browse the repository at this point in the history
- Turn-off progress bar for the solvers
  • Loading branch information
BoxiLi committed Feb 18, 2023
1 parent 708a54d commit 14da7f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/source/qip-basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ gate function returning a :class:`qutip.Qobj` and save it in the attribute ``use
# controlled rotation X
mat = np.zeros((4, 4), dtype=np.complex)
mat[0, 0] = mat[1, 1] = 1.
mat[2:4, 2:4] = rx(arg_value)
mat[2:4, 2:4] = rx(arg_value).full()
return Qobj(mat, dims=[[2, 2], [2, 2]])


Expand Down
2 changes: 2 additions & 0 deletions src/qutip_qip/device/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1209,10 +1209,12 @@ def run_state(
options = kwargs.get("options", qutip.Options())
if options.get("max_step", 0.0) == 0.0:
options["max_step"] = total_circuit_time / 25
options["progress_bar"] = False
else:
options = kwargs.get("options", qutip.Options())
if options.max_step == 0.0:
options.max_step = total_circuit_time / 10
options.progress_bar = False
kwargs["options"] = options
# choose solver:
if solver == "mesolve":
Expand Down

0 comments on commit 14da7f6

Please sign in to comment.