- class CircuitOp(*args, **kwargs)¶
Deprecated: Class for Operators backed by Terra’s
버전 0.24.0부터 폐지됨: The class
qiskit.opflow.primitive_ops.circuit_op.CircuitOpis 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 QuantumCircuit which defines the
function. (behavior of the underlying) –
coeff – A coefficient multiplying the primitive
- 예외 발생
TypeError – Unsupported primitive, or primitive has ClassicalRegisters.
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
Parametersin the coefficients or primitives of the Operator, or substitutes one
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.
Permute the qubits of the circuit.
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
QuantumCircuitequivalent to this Operator.
CircuitOpequivalent to this Operator.
Instructionequivalent to this Operator.
Return NumPy representation of the Operator.
- INDENTATION = ' '¶
The scalar coefficient multiplying the Operator.
Return the unique instance id.
- primitive: QuantumCircuit¶
The primitive defining the underlying function of the Operator.
The primitive object.
Return operator settings.