- class OperatorStateFn(*args, **kwargs)[소스]¶
Deprecated: A class for state functions and measurements which are defined by a density Operator, stored using an
버전 0.24.0부터 폐지됨: The class
qiskit.opflow.state_fns.operator_state_fn.OperatorStateFnis deprecated as of qiskit-terra 0.24.0. It will be removed no earlier than 3 months after the release date. For code migration guidelines, visit https://qisk.it/opflow_migration.
primitive – The
OperatorBasewhich defines the behavior of the underlying State function.
coeff – A coefficient by which to multiply the state function
is_measurement – Whether the StateFn is a measurement operator
Methods Defined Here
Return Operator addition of self and other, overloaded by
Return a new Operator equal to the Operator's adjoint (conjugate transpose), overloaded by
Evaluate the Operator's underlying function, either on a binary string or another Operator.
Permute the qubits of the state function.
Return a set of strings describing the primitives contained in the Operator.
Sample the state function as a normalized probability distribution.
Return tensor product between self and other, overloaded by
StateFnCircuitcorresponding to this StateFn.
Return numpy matrix of density operator, warn if more than 16 qubits to force the user to set massive=True if they want such a large matrix.
Note: this does not return a density matrix, it returns a classical matrix containing the quantum or classical vector representing the evaluation of the state function on each binary basis state.
Return a MatrixOp for this operator.
- INDENTATION = ' '¶
A coefficient by which the state function is multiplied.
Return the unique instance id.
Whether the StateFn object is a measurement Operator.
- primitive: OperatorBase¶
The primitive which defines the behavior of the underlying State function.