Class for Operators backed by Terra’s
QuantumCircuit]) – The QuantumCircuit which defines the
of the underlying function. (behavior) –
ParameterExpression]) – A coefficient multiplying the primitive
TypeError – Unsupported primitive, or primitive has ClassicalRegisters.
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
Parametersin the coefficients or primitives of the Operator, or substitutes one
Same as assign_parameters, but maintained for consistency with QuantumCircuit in Terra (which has both assign_parameters and bind_parameters).
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 Operator exponentiation, equaling e^(-i * op)
MatrixOpequivalent to log(H)/-i for this operator H.
Returns the scalar multiplication of the Operator, overloaded by
*, including support for Terra’s
Parameters, which can be bound to values later (via
Return the Operator’s negation, effectively just multiplying by -1.0, overloaded by
Permute the qubits of the circuit.
Return Operator composed with self multiple times, overloaded by
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
Return tensor product with self multiple times, overloaded by
QuantumCircuitequivalent to this Operator.
CircuitOpequivalent to this Operator.
Instructionequivalent to this Operator.
Attempt to return the Legacy Operator representation of the Operator.
Return NumPy representation of the Operator.
MatrixOpequivalent to this Operator.
Returns a sum of
PauliOps equivalent to this Operator.
INDENTATION= ' '¶
The scalar coefficient multiplying the Operator.
The primitive defining the underlying function of the Operator.
The primitive object.