Returns a phased version of the effect.
For example, an X gate phased by 90 degrees would be a Y gate.
- phase_turns – The amount to phase the gate, in fractions of a whole turn.
- qubit_index – The index of the target qubit the phasing applies to.
The phased gate or operation.