qiskit.providers.aer.noise.QuantumError.compose¶
- QuantumError.compose(other, qargs=None, front=False)[소스]¶
Return the operator composition with another CLASS.
- 매개변수
other (CLASS) – a CLASS object.
qargs (list or None) – Optional, a list of subsystem positions to apply other on. If None apply on all subsystems (default: None).
front (bool) – If True compose using right operator multiplication, instead of left multiplication [default: False].
- 반환
The composed CLASS.
- 반환 형식
CLASS
- 예외 발생
QiskitError – if other cannot be converted to an operator, or has incompatible dimensions for specified subsystems.
참고
Composition (
&
) by default is defined as left matrix multiplication for matrix operators, whiledot()
is defined as right matrix multiplication. That is thatA & B == A.compose(B)
is equivalent toB.dot(A)
whenA
andB
are of the same type.Setting the
front=True
kwarg changes this to right matrix multiplication and is equivalent to thedot()
methodA.dot(B) == A.compose(B, front=True)
.