PLAIN QUANTUM
Search
Free tool · for learning

Build an entangled pair: one shared state, or a coin toss?

  • By Muhammad Atif
  • Reviewed 29 October 2026

Two qubits, A and B, start as plain 0s. Measured now, they'd read 00 every time.

You'll apply two gates to them, the ones from How quantum gates work, and predict what measuring would show after each. Then you'll test what you've built against something that looks the same: a coin toss that selects, before each run, which preparation to use: 00 or 11.

One term: a qubit has a definite state when it can be described by a single list of amplitudes, like the blends in Superposition. (Physicists call this a pure state.)

How to read the results: qubit A is the left digit, qubit B the right. "10" means A read 1 and B read 0.

You'll need Entanglement and How quantum gates work first.

Skip to Change one gate

Check yourself

  1. Two qubits start at 00. You apply H to the first. Before any other gate, what are the chances of 00, 01, 10 and 11?

    Answer

    50%, 0%, 50%, 0%. Only the first qubit is a blend.

  2. A CNOT's control qubit is in an even blend and its target is 0. Does the control qubit come out the same as it went in?

    Answer

    Its own 0-or-1 chances are the same, half and half: in each part of the blend CNOT leaves the control's 0 or 1 as it is and changes only the target. But its own state isn't the same. It went in as a definite blend and comes out, on its own, as a 50/50 mixture, because the pair is now entangled and can't be described as two separate definite states.

  3. An entangled pair and a coin that prepares 00 or 11 give the same results for the ordinary question. How can you tell them apart?

    Answer

    Ask a different question: H on both, then measure. The pair still gives only 00 or 11; the coin gives all four. This tells the pair from this coin only. The Bell game rules out any plan agreed in advance by players who can't communicate, under the assumptions of its game.

  4. Two qubits give 00, 01, 10 and 11 a quarter of the time each. Are they entangled?

    Answer

    Not necessarily. H on both qubits gives exactly that, and each qubit still has a definite state of its own.

More recall questions on these ideas are in the lessons: How quantum gates work (two), Entanglement (two) and Superposition (one).

Show the maths
  • Kets: |AB⟩ with A first. H = (1/√2)[[1, 1], [1, −1]]; CNOT maps |10⟩ ↔ |11⟩.
  • Step 1: |00⟩ → (|00⟩ + |10⟩)/√2.
  • Step 2: → (|00⟩ + |11⟩)/√2.
  • H on both:
    • (|00⟩ + |11⟩)/√2 → (|00⟩ + |11⟩)/√2: the |01⟩ and |10⟩ terms cancel;
    • for the coin, each branch: H⊗H|00⟩ and H⊗H|11⟩ each give ¼ for all four results.
  • The coin as a density matrix: ρ = ½|00⟩⟨00| + ½|11⟩⟨11|. It is a perfectly good quantum description, but not of the form |ψ⟩⟨ψ|. Its purity Tr ρ² = ½, against 1 for the pair. The difference is the off-diagonal terms: the pair's ρ has ½|00⟩⟨11| + ½|11⟩⟨00| (coherence between 00 and 11); the coin's ρ has none. That's why the page shows the coin's chances but no amplitudes.
  • Qubit A on its own:
    • before CNOT, A's state is |+⟩ = (|0⟩ + |1⟩)/√2 (purity 1);
    • after CNOT, A's reduced state is ½|0⟩⟨0| + ½|1⟩⟨1| (purity ½);
    • A's own 0/1 chances (½, ½) didn't change; its state did.
  • Undo: HA · CNOT applied to the pair gives |00⟩. Applied to the coin, it gives ½|00⟩⟨00| + ½|10⟩⟨10| (still purity ½). Gates are unitary, and a unitary acting on these two qubits preserves purity (Tr ρ² is unchanged), so no sequence of the page's gates, or of any reversible gates on these two qubits alone, makes this mixture pure. Purifying it would need an irreversible step such as a measurement, or extra qubits.
  • Z variant: (|00⟩ − |11⟩)/√2 → H⊗H → (|01⟩ + |10⟩)/√2.

What this page leaves out

  • Ideal qubits. No noise, no errors, and every gate is perfect. Real two-qubit gates are among the most error-prone operations (Why qubits are fragile).
  • It's a calculation, not an experiment. The page works out the results with quantum theory's rules in one program, and draws each run with an ordinary random number generator.
  • One different question. Real tests of entanglement ask several questions and compare them statistically: the Bell game shows how. This page asks only one, so it tells your pair apart from this particular coin toss. Ruling out every plan agreed in advance by players who can't communicate, under stated assumptions, is what Bell tests do, and what the Bell game models.
  • A few gates only: H, X, Z and CNOT on two qubits. Real circuits use many more.
  • 'H on both, then the ordinary question' is how this page asks a different question. Real devices also measure in other ways.

Where to go next

  • Ask many different questions of the same pair: the Bell game. It shows that no plan agreed in advance, by players who can't communicate, can match entangled pairs on average, under the assumptions its game states. Its Step 2 asks whether matching answers alone show entanglement.
  • Back to Entanglement, Bell's test, as a game
  • How interference turns a hidden sign into a different result: Interference

The experiment runs entirely in your browser. Your choices, your predictions and your results aren't stored, and this page's own code doesn't send them anywhere. Cloudflare Web Analytics runs on every Plain Quantum page and measures how each page loads and responds, including to clicks and key presses; see Privacy. The model is tested automatically: every configuration, the coin and the sampling are checked against an exact calculation.

Sources and further reading

Tags show the kind of source (how sources are chosen and checked). Spotted an error? Report a correction.

  1. BookQuantum Computation and Quantum Information (10th anniversary edition)Michael Nielsen and Isaac Chuang, Cambridge University Press, 2010

Further reading: education research

Research on how students learn to tell superpositions from mixtures (for teachers and the curious).

  1. Peer-reviewed paperEnhancing student learning of two-level quantum systems with interactive simulationsKohnle, Baily, Campbell, Korolkova and Paetkau, American Journal of Physics, 2015