5.13. P Gate#
P gate is also known as phase gate. This gate contains a parameter.
5.13.1. Definition#
Transformation
Matrix expression
U gate expression
R gate expression
The qiskit circuit symbol is p. It appears in quantum circuits as
or
┌──────┐ q: ┤ P(θ) ├ └──────┘
\(Z\), \(S\), \(T\) and \(P\) all rotates the Bloch vector around the \(z\) axis. gates are special cases of \(P\) gate: \(Z=P(\pi)\), \(S=P(\pi/2)\) and \(T=P(\pi/4)\). While these relations are mathematically exact and \(P\) gate can replace them, the parameter-free gates should be used when the rotation angle
5.13.2. Acting on a superposition state#
When PGate is applied to a superposition state, the coefficient to \(|0\rangle\) remains the same but that of \(|1\rangle\) gets additional phase factor. That is
In Bloch sphere representation,
This suggests that the Bloch vector rotates around \(z\) axis by \(t\).
Last modified: 08/31/2022