You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two words in the docstring contain typos. See below.
Code to Reproduce the Bug
from qutip import expect
print(expect.__doc__)
Code Output
Parameters
----------
oper : qobj/array-like
A single or a `list` or operators for expectation value.
state : qobj/array-like
A single or a `list` of quantum states or density matrices.
Returns
-------
expt : float/complex/array-like
Expectation value. ``real``if`oper` is Hermitian, ``complex``
otherwise. A (nested) array of expectaction values of state or operator
are arrays.
Expected Behaviour
Parameters
oper : qobj/array-like
A single or a listorof operators for expectation value.
state : qobj/array-like
A single or a list of quantum states or density matrices.
Returns
expt : float/complex/array-like
Expectation value. real if oper is Hermitian, complex
otherwise. A (nested) array of expectaction values ofif state or operator
are arrays.
Bug Description
Two words in the docstring contain typos. See below.
Code to Reproduce the Bug
Code Output
Expected Behaviour
Parameters
oper : qobj/array-like
A single or a
list
orof operators for expectation value.state : qobj/array-like
A single or a
list
of quantum states or density matrices.Returns
expt : float/complex/array-like
Expectation value.
real
ifoper
is Hermitian,complex
otherwise. A (nested) array of expectaction values
ofif state or operatorare arrays.
Your Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: