I have some questions regarding the mechanism of Qiskit pulse.ShiftPhase
instruction:
- Does it work like a Phase Shift $P(\theta)=\begin{bmatrix} 1 & 0 \\0 & e^{i\theta} \end{bmatrix}$ gate, a Global Phase Shift $Ph(\theta)=\begin{bmatrix} e^{i\theta} & 0 \\0 & e^{i\theta} \end{bmatrix}$ gate, or a $R_z(\theta)=\begin{bmatrix} e^{-i\theta/2} & 0 \\0 & e^{i\theta/2} \end{bmatrix}$ gate?
- I read that when I apply a
ShiftPhase
it'd affect all the pulses following, meaning everytime I apply a pulse there will be a phase shift gate right? So if I only want to apply only one RZ/PS/Global PS gate should I apply a reversal phase shift after a pulse, or would that equivalently mean I have applied a PS/GPS/RZ($ -\theta$) gate? - How is the free Z rotation tracked by software in the case of a qutrit (3 energy levels) or more, and how does
ShiftPhase
work in this case?
Many thanks!