SparsePauliOp.compose¶
- SparsePauliOp.compose(other, qargs=None, front=False)[source]¶
Return the composition channel self∘other.
- Parameters
other (SparsePauliOp) – an operator object.
qargs (list or None) – a list of subsystem positions to compose other on.
front (bool or None) – If False compose in standard order other(self(input)) otherwise compose in reverse order self(other(input)) [default: False]
- Returns
The composed operator.
- Return type
- Raises
QiskitError – if other cannot be converted to an Operator or has
incompatible dimensions. –