qp.ops.qubit.attributes.composable_rotations

composable_rotations = {'CRX', 'CRY', 'CRZ', 'ControlledPhaseShift', 'DoubleExcitation', 'DoubleExcitationMinus', 'DoubleExcitationPlus', 'IsingXX', 'IsingXY', 'IsingYY', 'IsingZZ', 'OrbitalRotation', 'PhaseShift', 'RX', 'RY', 'RZ', 'Rot', 'SingleExcitation', 'SingleExcitationMinus', 'SingleExcitationPlus'}

Operations for which composing multiple copies of the operation results in an addition (or alternative accumulation) of parameters.

For example, qp.RZ is a composable rotation. Applying qp.RZ(0.1, wires=0) followed by qp.RZ(0.2, wires=0) is equivalent to performing a single rotation qp.RZ(0.3, wires=0).

An example for an alternative accumulation is the qp.Rot gate: although the three angles it takes do not fulfil the composable property, the gate implements a rotation around an axis by an effective angle which does.

Type:

Attribute