The Z Gate Changes One Basis Phase
The Z gate reverses the sign of the one-state amplitude while keeping the zero-state amplitude.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
The gate satisfies \(Z\lvert0\rangle=\lvert0\rangle\) and \(Z\lvert1\rangle=-\lvert1\rangle\).
Trace a plus-state input
Applying Z maps \((\lvert0\rangle+\lvert1\rangle)/\sqrt2\) to \((\lvert0\rangle-\lvert1\rangle)/\sqrt2\). The probabilities in the computational basis stay equal. See relative phases.
Check a later basis change
Measuring after a Hadamard maps these two states to different computational labels. Interference explains why a change invisible to one measurement can affect another.[1][2]