qiskit.ignis.verification.CNOTDihedral.compose¶
-
CNOTDihedral.
compose
(other, qargs=None, front=False)[source]¶ Return the composed operator.
- Parameters
other (CNOTDihedral) – an operator object.
qargs (None) – using specific qargs is not implemented for this operator.
front (bool) – if True compose using right operator multiplication, instead of left multiplication [default: False].
- Returns
The operator self @ other.
- Return type
- Raises
QiskitError – if operators have incompatible dimensions for composition.
NotImplementedError – if qargs is not None.
- Additional Information:
Composition (
@
) is defined as left matrix multiplication for matrix operators. That is thatA @ B
is equal toB * A
. Settingfront=True
returns right matrix multiplicationA * B
and is equivalent to thedot()
method.