A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/qutip/qutip/issues/2331 below:

Typos in qutip.expect()'s docstring · Issue #2331 · qutip/qutip · GitHub

Bug Description

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 list or of 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 if state or operator
are arrays.

Your Environment
QuTiP Version:      4.7.5
Numpy Version:      1.26.4
Scipy Version:      1.11.4
Cython Version:     None
Matplotlib Version: 3.8.3
Python Version:     3.12.2
Number of CPUs:     8
BLAS Info:          Generic
OPENMP Installed:   False
INTEL MKL Ext:      False
Platform Info:      Windows (AMD64)
Additional Context

No response


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4