- class PauliSumOp(*args, **kwargs)[소스]¶
Deprecated: Class for Operators backed by Terra’s
버전 0.24.0부터 폐지됨: The class
qiskit.opflow.primitive_ops.pauli_sum_op.PauliSumOpis 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 SparsePauliOp which defines the behavior of the underlying function.
coeff – A coefficient multiplying the primitive.
grouping_type – The type of grouping. If None, the operator is not grouped.
- 예외 발생
TypeError – invalid parameters.
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
Return Operator Composition between self and other (linear algebra-style: A@B(x) = A(B(x))), overloaded by
Evaluate Equality between Operators, overloaded by
Evaluate the Operator's underlying function, either on a binary string or another Operator.
CircuitOpequivalent to e^-iH for this operator H.
Construct from a pauli_list with the form [(pauli_str, coeffs)]
Return True if the operator is hermitian.
Return this operator is zero operator or not.
Return a matrix representation iterator.
Returns the scalar multiplication of the Operator, overloaded by
*, including support for Terra's
Parameters, which can be bound to values later (via
Permutes the sequence of
Return a set of strings describing the primitives contained in the Operator.
Simplify the primitive
Return tensor product between self and other, overloaded by
Instructionequivalent to this Operator.
Return NumPy representation of the Operator.
Returns a sum of
PauliOps equivalent to this Operator.
Returns SciPy sparse matrix representation of the
- INDENTATION = ' '¶
The scalar coefficient multiplying the Operator.
Return the Pauli coefficients.
Type of Grouping
Return the unique instance id.
- primitive: SparsePauliOp¶
The primitive defining the underlying function of the Operator.
The primitive object.
Return operator settings.