- abstract OperatorBase.compose(other, permutation=None, front=False)¶
Return Operator Composition between self and other (linear algebra-style: A@B(x) = A(B(x))), overloaded by
Note: You must be conscious of Quantum Circuit vs. Linear Algebra ordering conventions. Meaning, X.compose(Y) produces an X∘Y on qubit 0, but would produce a QuantumCircuit which looks like
Because Terra prints circuits with the initial state at the left side of the circuit.
OperatorBase) – The
OperatorBasewith which to compose self.
List[int]which defines permutation on other operator.
bool) – If front==True, return
- 반환 형식
OperatorBaseequivalent to the function composition of self and other.