Gate Output Three-Input Scan
Three exact Pythagorean input pairs pass through the same X gate, each swapping to its own checked output.
Calculate the baseline
Send the first Pythagorean pair through X and inspect the swapped entries.
Apply an ideal X gate to the normalized real amplitudes (0.6, 0.8). What is the output probability of zero?
- X: (0.6, 0.8) → (0.8, 0.6) — Apply the ideal gate to amplitudes before squaring.
- a′ = b; b′ = a — Keep the signs: interference happens at the amplitude level.
- P0 = (0.8)² = 0.64 1; P1 = 0.36 — Read the two computational-basis probabilities.
- ✓ — Independent check: Unitary gate conserves norm; independently reconstruct the complementary probability.
Enable JavaScript to control the model and practise.
Compare a second case
Reverse that input pair and run the same gate. The map remains fixed across comparisons.
Apply an ideal X gate to the normalized real amplitudes (0.8, 0.6). What is the output probability of zero?
- X: (0.8, 0.6) → (0.6, 0.8) — Apply the ideal gate to amplitudes before squaring.
- a′ = b; b′ = a — Keep the signs: interference happens at the amplitude level.
- P0 = (0.6)² = 0.36 1; P1 = 0.64 — Read the two computational-basis probabilities.
- ✓ — Independent check: Unitary gate conserves norm; independently reconstruct the complementary probability.
Enable JavaScript to control the model and practise.
Test the boundary and practise
Use a third normalized pair to verify that the gate conserves norm beyond one worked example.
Apply an ideal X gate to the normalized real amplitudes (0.3846153846, 0.9230769231). What is the output probability of zero?
- X: (0.3846153846, 0.9230769231) → (0.9230769231, 0.3846153846) — Apply the ideal gate to amplitudes before squaring.
- a′ = b; b′ = a — Keep the signs: interference happens at the amplitude level.
- P0 = (0.9230769231)² = 0.8520710059 1; P1 = 0.1479289941 — Read the two computational-basis probabilities.
- ✓ — Independent check: Unitary gate conserves norm; independently reconstruct the complementary probability.
Enable JavaScript to control the model and practise.
Recap
- Keep the gate fixed while varying the input.
- Each row has its own computed output.
- All valid outputs retain unit norm.