Before this lesson: qubits and measurement.
Equal probabilities do not specify a quantum state
Consider the two column vectors
Measuring either in the computational basis gives outcomes 0 and 1 with equal probabilities. Yet the two states are different: a suitable operation before measurement distinguishes them perfectly. The missing information is the relative phase of their amplitudes.
This note derives a complete experiment that makes that phase observable. We will also distinguish a global phase, which multiplies the whole state and changes no measurement probability, from a relative phase, which can affect interference. All computations use one ideal qubit; there is no noise, sampling simulation or hidden physical assumption about the hardware needed for the linear algebra below.
Kets, amplitudes and the Born rule
The computational basis consists of the orthonormal vectors
Definition 8.1.1
(Normalized pure qubit state)
A pure qubit can be represented by
where are complex amplitudes. For , . Computational-basis measurement returns 0 with probability and 1 with probability . The amplitudes themselves are not probabilities.
The dagger means conjugate transpose. For a unit vector , write . More generally, measurement in an orthonormal basis gives outcome with probability . This is the Born rule in a different basis.
A one-qubit gate is represented by a unitary matrix , meaning . Hence : the output remains normalized. Matrix products act from right to left.
Why a shared global phase cannot be measured
Let be real. The states and represent the same physical pure state. This equivalence uses a factor of modulus one, not an arbitrary change in either amplitude separately.
Definition 8.1.2
(Global phase and relative phase)
A real number gives the global phase factor in . For a state with , the relative phase is , taken modulo .
Proposition 8.1.3
(A global phase changes no measurement probability)
For every real , every unitary and every orthonormal basis vector ,
Proof
(Pull the phase out by linearity)
For any unitary and any measurement basis vector , linearity gives
Thus changing the basis or adding further unitary evolution cannot turn a shared phase into a different measurement distribution. For instance, is the same state, using .
Proof X-ray
What the cancellation depends on
Only two facts enter. Linearity lets the scalar pass through and the inner product, and makes it disappear under the squared modulus. Unitarity of is not used here; it only keeps the state normalized. The hypothesis that the factor multiplies the entire state is exactly what allows it to be pulled out. In the scalar multiplies one term only and cannot be factored, so the two contributions to an output amplitude no longer rotate together. That failure of factoring is how a relative phase becomes observable.
In an amplitude diagram, changing rotates both arrows together. That changes the chosen vector representative, not an observable outcome.
By contrast, the family
changes the phase between its two nonzero amplitudes. If two members of this family differ only by a global factor, their equal nonzero first amplitudes force that factor to be 1, so their second amplitudes must also agree. Thus they represent the same state exactly when their phases agree modulo . Equal computational-basis probabilities do not erase this distinction.
Counterexample mode
A sign on one branch is not a global phase
Claim: and are the same state, because they differ only by a sign. This is false. The vector is a global-phase copy of , but changes the sign of one amplitude only. Applying gives and , so a final computational-basis measurement returns 0 with certainty in one case and 1 with certainty in the other. A sign is a global phase only when it multiplies every amplitude; on one branch it is the relative phase .
Prepare phase, then choose where to read out
Use the Hadamard gate and a phase gate :
Direct multiplication gives and . Also , since . Starting from , first apply , then , and optionally multiply the whole state by the global factor :
Immediately before a final Hadamard, both outcome probabilities are , for every and . The phase information is in the amplitudes, while this particular measurement sees only their squared magnitudes.
The two possible readout points describe alternative freshly prepared experiments. Reading out before the final means stopping and measuring there. It does not mean performing that measurement, keeping its result, and then continuing the same coherent state through . Measurement is a different operation from inspecting a mathematical state vector on a page.
Hadamard turns relative phase into different probabilities
Apply the final Hadamard without an intervening measurement:
The amplitude for outcome 0 is the sum of two contributions, and . For outcome 1, the second contribution changes sign. Add these amplitudes first, then take the squared magnitude. Adding their squared magnitudes separately would discard the interference term.
Theorem 8.1.4
(Hadamard interference law)
For the state , a computational-basis measurement after one Hadamard gate returns 0 with probability and 1 with probability , for every real .
Proof
(Derive both probabilities and check normalization)
Using gives
The common factor has squared magnitude 1. Therefore
Both are nonnegative and . Equivalently, the final state is
This form separates the global factor from the two observable squared magnitudes. Its signs and complex phases still matter for later gates; probabilities alone are not a replacement state vector.
Relative phase can change which amplitudes cancel
Prepare H|0⟩, apply the phase gate P(φ), and compare measuring now with applying one more H before measurement. Change the relative phase and the common global phase separately. Complex amplitudes add before their squared magnitudes become probabilities.
γ multiplies the whole displayed state by e^(iγ). It changes the chosen vector representative, not the physical state or any outcome probability.
These are alternative experiments on freshly prepared qubits. The earlier readout means “probabilities if measured here”; no intermediate measurement is performed before the final H in the other experiment.
Preparation and chosen readout
|0⟩ → H → P(φ) → H → [computational-basis measurement]
Common representative factor: e^(iγ).
Complex-amplitude planes
Each panel is a complex coordinate plane, not a picture of a qubit in physical space. Horizontal is Re and vertical is Im; the circle has radius 1. The default view draws the amplitude as a thick solid arrow. After H, select the construction view to replace it with dashed u followed head to tail by dotted ±v; a diamond marks their final endpoint. The hollow joint marks the end of u. Opposing collinear contributions may overlap, with opposite arrowheads and explicit u/±v labels. Before H, only the prepared amplitude is drawn. ≈0 marks a vanishing resultant at display precision.
α0 · |0⟩ · Apply final H, then measure
α0 ≈ 0.000 + 0.000i
Probability if measured here |0⟩: ≈ 0.000
α1 · |1⟩ · Apply final H, then measure
α1 ≈ 1.000 + 0.000i
Probability if measured here |1⟩: ≈ 1.000
The final H mixes the two amplitudes. It converts cos φ into outcome probabilities while the common phase remains unobservable.
[α0, α1] = e^(iγ)(1+e^(iφ))/2; e^(iγ)(1−e^(iφ))/2
| Measurement choice | Outcome | Amplitude | Real coordinate | Imaginary coordinate | Probability if measured here |
|---|---|---|---|---|---|
| Measure before the final H · |0⟩ | 0 | 0.707 + 0.000i | 0.707 | 0.000 | 0.500 |
| Measure before the final H · |1⟩ | 1 | −0.707 + 0.000i | −0.707 | 0.000 | 0.500 |
| Apply final H, then measure (selected experiment) · |0⟩ | 0 | 0.000 + 0.000i | 0.000 | 0.000 | 0.000 |
| Apply final H, then measure (selected experiment) · |1⟩ | 1 | 1.000 + 0.000i | 1.000 | 0.000 | 1.000 |
| Outcome | First contribution u | Second contribution ±v | Sum u±v |
|---|---|---|---|
| |0⟩ | 0.500 + 0.000i | −0.500 + 0.000i | 0.000 + 0.000i |
| |1⟩ | 0.500 + 0.000i | 0.500 + 0.000i | 1.000 + 0.000i |
Displayed coordinates and probabilities are rounded to three decimal places; ≈0 need not mean a floating-point value is exactly zero. The displayed state-vector formula is exact; the proof derives it. These are Born probabilities, not sampled measurement frequencies.
- φ
- 180°
- γ
- 0°
- p(0)
- ≈ 0.000
- p(1)
- ≈ 1.000
- Sum of outcome probabilities
- ≈ 1.000
Apply final H, then measure · φ=180° · γ=0° · p(0)≈0.000 · p(1)≈1.000.
Derive the amplitudes before discussing their probabilities
Use the ordered basis |0⟩,|1⟩. The Hadamard matrix is H=(1/√2)[[1,1],[1,−1]], so H|0⟩=(|0⟩+|1⟩)/√2. The phase gate P(φ)=diag(1,e^(iφ)) changes the second component relative to the first. Multiplying the whole vector by e^(iγ) then gives amplitudes a=e^(iγ)/√2 and b=e^(i(γ+φ))/√2. Both have squared magnitude 1/2, so measuring in this basis at this point cannot reveal φ.
A final H sends [a,b] to [(a+b)/√2,(a−b)/√2]. For outcome 0 the two contributions are u=e^(iγ)/2 and v=e^(i(γ+φ))/2; for outcome 1 they are u and −v. Add these complex numbers first, then take the squared magnitude. Thus p0=|1+e^(iφ)|²/4=(1+cos φ)/2=cos²(φ/2), while p1=(1−cos φ)/2=sin²(φ/2). Their sum is 1. All trigonometric arguments in these formulas are radians; the controls display degrees and convert them internally.
The entire final vector can also be written e^(i(γ+φ/2))[cos(φ/2),−i sin(φ/2)]. The common factor has magnitude one. More generally, for the same fixed unitary U and any measurement-basis vector |q⟩, the amplitude for e^(iγ)|ψ⟩ is ⟨q|U(e^(iγ)|ψ⟩)=e^(iγ)⟨q|U|ψ⟩. Taking its squared magnitude removes the common factor. States that differ only by global phase therefore have the same measurement probabilities in any basis, even after further unitary operations. The rotating diagrams show different representatives of that same physical state.
Relative phase is different. At φ=0 the prepared state is |+⟩ and the final H gives |0⟩. At φ=180° it is |−⟩ and the final H gives |1⟩. Both prepared states give 1/2,1/2 if measured before H, yet the final H distinguishes them perfectly. At 90° and 270° the final probabilities are both 1/2,1/2; the symmetry φ↔360°−φ means this readout does not generally determine the state. To compare the alternatives coherently, do not measure in the middle. If an intermediate computational measurement is performed and its result discarded, the resulting equal mixture instead gives 1/2,1/2 after H for every φ.
This measurement sees cos φ only: every φ and 360°−φ have identical distributions. It cannot identify a general phase; φ=90° and φ=270° both give one half for each outcome after H, despite representing different states before H.
Quick check: does changing γ from 0° to 180° turn |+⟩ into |−⟩?
No. A global factor −1 changes both components: |+⟩ becomes −|+⟩, the same physical state. The state |−⟩ changes only the relative sign of the second component. The final H sends |+⟩ and −|+⟩ to outcome 0 with certainty, while |−⟩ gives outcome 1 with certainty.
One ideal qubit, initialized as |0⟩ and prepared by H, with exact unitary gates and a final computational-basis measurement. Both φ and γ are periodic: 0° and 360° represent the same setting. This is not a general circuit simulator, a noisy device model or a phase-reconstruction algorithm.
Common mistake
(Adding probabilities instead of amplitudes)
Treating the two contributions to outcome 0 as separate alternatives gives for every , so no phase would ever matter. At the true probability is : the amplitudes and cancel before squaring.
Exact checkpoints for the interference experiment
Mathematical angles below are in radians; the controls may display degrees. A displayed angle degrees means . Take for the amplitude columns in the table. A different multiplies both columns by the same .
| Relative phase | Final amplitude 0 | Final amplitude 1 | ||
|---|---|---|---|---|
| () | ||||
| () | ||||
| () | ||||
| () | ||||
| () |
Worked example 8.1.5
(A phase flip changes a certain 0 into a certain 1)
At , the phase gate is the identity and . The final outcome is therefore 0 with probability 1.
At , the state before the final Hadamard is . The two contributions to output 0 cancel, while those to output 1 add, giving . The final outcome is 1 with probability 1. Both preparations had computational-basis probabilities before that final gate.
Now change only , for example to . Both final amplitudes change sign, but the certain outcome remains 1. Relative phase changed the distribution after interference; global phase did not.
Worked example 8.1.6
(Amplitudes and probabilities at )
Here . With the final amplitudes are
Their squared magnitudes are and . These agree with and and sum to 1. The phase gives the same two probabilities.
At and , the final distributions are identical. This readout depends only on , so it cannot distinguish from modulo . It does not recover an arbitrary phase completely. A different measurement basis, or a known phase gate before readout, can supply different information. For example, a separate experiment inserting immediately before the last gives instead. The two settings probe different parts of the relative phase.
Concept lensGeometric
Phase as an angle on the Bloch sphere
On the Bloch sphere, is the equatorial point , so the relative phase is its azimuth, while a global phase moves nothing. A computational readout gives . The Hadamard gate exchanges the and axes, which turns the final readout into . Inserting rotates the azimuth by a quarter turn, so becomes and .
Worked example 8.1.7
(Separating from )
The ordinary readout gives for both phases, because cosine is even. Now insert before the final , so that . This equals for and for . The two preparations are different states that the first readout cannot separate. Together, the values of and fix modulo .
A coherent superposition is not a classical mixture
Compare a qubit prepared as with a classical procedure that prepares half the time and half the time. Both give a fair computational-basis measurement. But after , the pure state gives outcome 0 certainly, while each member of the mixture gives a fair outcome, so the mixture stays fair overall.
Proposition 8.1.8
(Superposition and mixture differ after interference)
Let and . Both give computational-basis probabilities . After one , the first gives and the second gives .
Proof
(Density matrices and the off-diagonal entry)
A pure state has density matrix . For our phase family and for the classical mixture respectively,
The diagonal entries give the same computational-basis probabilities, but the off-diagonal entries differ. Gate evolution is , because . For a Hermitian of trace one, the entry of is . This is for . Since , the mixture remains fair after . A global phase cancels already in .
Proof X-ray
Why only the off-diagonal entry matters
After the Hadamard, the probability of outcome 0 is . The diagonal entries enter only through their sum, which is one, so all dependence on the phase comes from the coherence . This is the key move. The classical coin has by construction: it has erased the relative phase, and a computational-basis measurement whose outcome is discarded applies the same erasure. For the pure family, positivity bounds the entry by , and the pure state attains this largest value. Purity is therefore the hypothesis that makes the interference as visible as it can be.
If an actual computational-basis measurement is made before the final Hadamard and its outcome is discarded, the phase-family preparation becomes this mixture. Continuing with then gives , not the unmeasured interference distribution. If the outcome is retained, each conditional state is or , and each also gives a fair result after . This explains why switching a readout location must not be interpreted as inserting a measurement midway through one run. That measured-and-continued circuit is a third experiment, distinct from either choice of a single readout location.
The probabilities describe repeated identical preparations. They do not promise exactly half zeros in every finite collection of trials, nor do they turn a single observed bit into a complete description of the state.
Solved exercises
Quick check
(Which of and represents the same pure state as ? Can their equal computational-basis probabilities decide the question?)
Compare the ratio of the second amplitude to the first in each state.
Solution · Answer
, so it differs only by global phase. For , the equal nonzero first amplitudes would force a global factor of 1, but the second amplitudes then disagree. It is a different state, although all three have probabilities . For example, applying and then maps to and to , distinguishing them. The same operations map to , with the same certain outcome as .
Quick check
(With relative phase () and , compute both final amplitudes and their squared magnitudes. What changes if only the global phase becomes ()?)
Add the amplitudes before squaring.
Solution · Answer
Since , the amplitudes are and . Their squared magnitudes are and . Changing the global phase multiplies both amplitudes by but leaves these two probabilities unchanged. The pre-Hadamard probabilities remain in both cases.
Quick check
(Someone argues that the circuit always returns because . Find a phase giving a counterexample, and compare an experiment with no intermediate measurement to one that measures in the computational basis before the last .)
The matrix sits between the two Hadamards.
Solution · Answer
Take . Without an intervening measurement, the final state is , so the certain outcome is 1. The equality does not allow us to remove the different matrix between the factors. If we actually measure beforehand, outcomes 0 and 1 each occur with probability , leaving the corresponding basis state. Either state followed by gives a fair final result, so the final distribution is instead. These are different experiments.
Quick check
(Compare a known preparation with a preparation that chooses or by a fair classical coin. Give the outcome distributions after and computational-basis measurement. If a single trial returns 0, does that certify that the source was ?)
Compute each distribution first, then ask which outcomes are possible under both.
Solution · Answer
The coherent preparation gives , while the classical mixture gives . A single outcome 0 is possible under both preparations and therefore does not certify the coherent one. In the ideal model an outcome 1 rules out , but repeated trials are needed to estimate an unknown source's distribution. The different distributions establish an observable distinction without claiming perfect identification from one arbitrary observation.