EvolvedOp¶
- class EvolvedOp(*args, **kwargs)[소스]¶
기반 클래스:
PrimitiveOp
Deprecated: Class for wrapping Operator Evolutions for compilation (
convert
) by an EvolutionBase method later, essentially acting as a placeholder. Note that EvolvedOp is a weird case of PrimitiveOp. It happens to be that it fits into the PrimitiveOp interface nearly perfectly, and it essentially represents a placeholder for a PrimitiveOp later, even though it doesn’t actually hold a primitive object. We could have chosen for it to be an OperatorBase, but would have ended up copying and pasting a lot of code from PrimitiveOp.버전 0.24.0부터 폐지됨: The class
qiskit.opflow.evolutions.evolved_op.EvolvedOp
is 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 operator being wrapped to signify evolution later.
coeff – A coefficient multiplying the 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
~
.Binds scalar values to any Terra
Parameters
in the coefficients or primitives of the Operator, or substitutes oneParameter
for another.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.
Return a
MatrixOp
equivalent to log(H)/-i for this operator H.Permutes the qubits of the operator.
Return a set of strings describing the primitives contained in the Operator.
Try collapsing the Operator structure, usually after some type of conversion, e.g.
Return tensor product between self and other, overloaded by
^
.Returns an
Instruction
equivalent to this Operator.Return NumPy representation of the Operator.
Returns a
MatrixOp
equivalent to this Operator.Attributes
- INDENTATION = ' '¶
- coeff¶
The scalar coefficient multiplying the Operator.
- 반환
The coefficient.
- instance_id¶
Return the unique instance id.
- num_qubits¶
- parameters¶
- primitive: PrimitiveOp¶
The primitive defining the underlying function of the Operator.
- 반환
The primitive object.
- settings¶
Return operator settings.