MakarovSuites
English
EnglishDeutschРусскийУкраїнськаFrançaisEspañolItalianoPolski
Contact & licences

Math

Gates, phase and what a basis is for

Four small circuits with one turnable phase in them, read in the Z, X or Y basis. The phase is a real, located property of the state - the Bloch vector walks the equator with it - and in the wrong basis it is completely invisible: over a whole turn the largest change in any outcome probability is 1e-16. Put a second Hadamard at the end and the same phase decides the answer with certainty. That is interference, and it is the whole difference between a quantum computer and a coin.

Gates, phase and what a basis is for — Actual application image
Actual application image

What happens

Four small circuits on a register of qubits, with one knob: a phase φ. Between two Hadamards the phase becomes a probability, cos²(φ/2) - interference on a single qubit. Skip the second Hadamard and the phase only turns the Bloch vector, both outcomes stay ½. Entangle two or three qubits and every single one becomes a fair coin with no Bloch vector at all; the phase has not vanished, it has moved into the parity - measure all the qubits together and cos φ is back. Turn φ through a full turn in each circuit and watch where it shows up and where it hides.

Equations used in the module
Equations
phase(φ) = diag(1, e^{iφ});  φ = π is Z, π/2 is S, π/4 is T
interference H·phase(φ)·H:  P(0) = cos²(φ/2)
Bell, GHZ: each qubit alone a fair coin, Bloch length 0
parity ⟨Z…Z⟩ carries cos φ - the phase lives in the correlations

Related experiments

Back to catalogue
Teleportation, and what the two classical bits are for — Actual application image

Math

Teleportation, and what the two classical bits are for

Alice's station holds a message qubit and half of a shared pair; Bob's holds the other half. Walk the protocol step by step - CNOT, H, measurement - and send the two bits down an ordinary channel. Stop them before they arrive and try to guess them; then pick Bob's correction and compare what he holds with the message. Until the bits arrive Bob's qubit is I/2 whatever was sent, and after measuring Alice keeps no copy.

One question, asked once — Actual application image

Math

One question, asked once

A black box computes f from n bits to one bit, and you may only ask it about inputs. To be certain whether f is constant or balanced can take half the table plus one call. Hadamard everything, ask ONCE with the answer as a sign, Hadamard everything again, and the all-zeros outcome settles it. The truth table here is clickable, so the promise can be broken by hand: for any table at all the answer comes up with probability (1 - 2k/N)². And when the table happens to be f(x) = s·x, the one call returns s itself.

Error-correcting codes — Actual application image

Math

Error-correcting codes

Inject X, Z or Y on a 3D code board, read the syndrome and reveal the recovery. Compare the remaining logical operator and input-state fidelity, then test exact probabilities against an ensemble of runs.