Entanglement and Protocols
Entanglement is a property of a composite quantum state that cannot be represented as a mixture of product states. For a pure entangled state, the joint state can be pure while each subsystem has a mixed reduced state. This page defines pure-state entanglement, catalogues standard entangled states, and works through teleportation, superdense coding and the Bell test.
Each circuit here is small enough to build in the Quantum Simulator .
Product states and entangled states
A two‑qubit state is a product state when it factorises,
and entangled when no such factorisation exists. Writing the state as , it factorises exactly when
For this determinant is , not zero, so no pair of single‑qubit states can reproduce it.
For a bipartite pure state, tracing out one subsystem gives a useful test: the state is entangled exactly when either reduced state is mixed. For mixed joint states, mixed marginals do not by themselves establish entanglement, and separability requires a more general test.
The Bell basis
The four Bell states are standard maximally entangled two‑qubit states, and they form an orthonormal basis. Other maximally entangled bases can be obtained from them with local unitaries.
One circuit produces all four: a Hadamard on the first qubit followed by a CNOT, with the input basis state selecting which one:
| Input | Output |
|---|---|
Reading the table backwards is just as useful. Running the circuit in reverse, CNOT and then Hadamard, maps the Bell basis onto the computational basis. A subsequent computational-basis measurement therefore implements a Bell measurement. Teleportation and superdense coding both use this transformation.
For every one of the four, tracing out either qubit gives . Each half alone is an unbiased random bit; all the structure is in the correlation.
Three qubits: GHZ and W
With three qubits entanglement stops having a single form. Under invertible local operations, there are two inequivalent classes of genuine tripartite pure-state entanglement, represented by GHZ and W. Product and biseparable states form additional, nongenuine classes.
The GHZ state is the natural extension of the Bell circuit: apply H to qubit 0, CNOT from qubit 0 to qubit 1, and CNOT from qubit 1 to qubit 2. Preparing the W state requires a different, asymmetric circuit with carefully chosen rotations; unlike the GHZ state, it cannot be produced by simply extending the Bell-state CNOT chain.
They behave differently when a qubit is lost. Tracing out one qubit of a GHZ state leaves the other pair in the separable mixture . Tracing out one qubit of a W state leaves the other pair entangled. GHZ and W represent inequivalent classes of genuine three-qubit entanglement under invertible local operations.
The no-cloning theorem
There is no unitary with for every . Suppose one existed and applied to two states and . Unitaries preserve inner products, so
which forces to be or . Thus two distinct states cloned perfectly by the same operation must be orthogonal. A device can clone states drawn from a known orthogonal set, but no device can perfectly clone every unknown quantum state.
This theorem rules out copying an unknown state for repeated inspection and explains why quantum error correction cannot encode by making independent copies. The disturbance caused by measuring nonorthogonal states, together with no-cloning and other protocol assumptions, also underlies the security of quantum key distribution.
Quantum teleportation
Teleportation transfers an unknown qubit state from Alice’s system to Bob’s using one shared Bell pair and two classical bits. It does not move matter and does not permit faster-than-light communication. Before Bob receives the classical bits, his reduced state is , independent of the teleported state.
Alice holds the unknown on qubit 0 and half of a Bell pair on qubit 1; Bob holds the other half on qubit 2.
- Prepare on qubits 1 and 2 (
Hthen CNOT). - Alice performs a Bell measurement on qubits 0 and 1: CNOT from qubit 0 to qubit 1, then
Hon qubit 0, then measure both. Call the results and . - Alice sends the two bits to Bob over a classical channel.
- Bob applies followed by to his qubit.
Bob’s qubit is then in the state exactly. Each of Alice’s four outcomes occurs with probability regardless of . Her two-bit outcome therefore reveals no information about the input state, and Bob cannot recover that state until the classical bits arrive.
| Alice measures | Bob’s qubit before correction | Bob applies |
|---|---|---|
00 | ||
01 | ||
10 | ||
11 |
Note what is not happening: no copy is made. Alice’s measurement destroys her copy of in the same step that creates Bob’s, exactly as no‑cloning requires.
Superdense coding
Superdense coding is teleportation’s mirror image: two classical bits sent by transmitting one qubit, again using a shared Bell pair.
Alice and Bob start with . To send two bits, Alice applies one gate to her half and mails that single qubit to Bob:
| Bits to send | Alice applies | Resulting pair | Bob measures |
|---|---|---|---|
00 | 00 | ||
01 | 01 | ||
10 | 10 | ||
11 | 11 |
Bob now holds both qubits, applies CNOT and then H to the first qubit, and measures both. Because the four Bell states are orthogonal, he recovers the two bits with certainty. This is an entanglement-assisted communication protocol: the pre-shared Bell pair is an additional resource, so transmitting two classical bits by sending Alice’s qubit does not contradict unassisted classical-capacity bounds.
Bell inequalities
Perfect correlation in one basis proves nothing; a shared coin flip does that. The quantum signature is that correlations persist across incompatible bases. For ,
all at once. The CHSH inequality turns this into a testable bound. Alice picks between measurement axes and Bob between , and one forms
Any local hidden-variable theory, whether deterministic or stochastic, obeys . In the XZ plane, measure along and for Alice and and for Bob. These choices give
the maximum quantum value for CHSH, known as Tsirelson’s bound. Loophole-free Bell tests violate the local hidden-variable bound under standard assumptions such as independent measurement choices. They do not rule out every possible classical or deterministic description without those assumptions.
Even so, entanglement alone sends no signal. Alice’s local statistics are no matter what Bob does, so her measurement outcomes are unbiased random bits either way. Every protocol on this page needs its classical channel.
Next: Quantum Error Correction builds on entanglement to protect information, and Quantum Algorithms shows what it buys computationally.
Simulator Lab: Build and Test Entanglement Protocols
The Quantum Simulator is most effective here when the circuit is tested in stages. Save or export JSON at each checkpoint so that a wiring error in a later protocol step does not require rebuilding the shared resource.
Bell and GHZ checkpoints
Start with the Bell (2) preset. Run and record the two nonzero probabilities and both Bloch radii. Add H to q0 after the preset’s CNOT and run again. This final H alone does not undo the Bell preparation because the inverse Bell transform requires CNOT first and then H.
Reset, reload Bell (2), append CNOT on 0,1, then append H on q0. The circuit now reverses its own preparation and returns |00⟩. This is the same Bell-to-computational-basis conversion used in Bell measurement.
Next load GHZ (3). The expected distribution has only |000⟩ and |111⟩, each with probability . All three reduced Bloch radii vanish. That local picture resembles three maximally mixed qubits, so it is the restricted global probability support, together with knowledge that the circuit prepared a pure state, that establishes the GHZ structure.
Check Bell correlations in three bases
Computational-basis correlation alone can be reproduced by shared classical randomness. Use copies of the exported Bell circuit to test more than one basis:
- Z basis: Run the Bell preset unchanged. Only
00and11occur, so . - X basis: Append
Hto both qubits. Again only00and11occur, now representing equal X-basis outcomes, so . - Y basis: Append
RZ(-\pi/2)and thenHto each qubit. Only01and10occur, representing opposite Y-basis outcomes, so .
For any two-qubit result table, calculate a same-minus-different correlator as
Use QSim’s probabilities rather than counts when verifying the ideal identities. Use counts only when studying the statistical uncertainty that a finite number of measurements would introduce. Reload the same Bell JSON before adding each basis rotation so the three tests differ only in their measurement basis.
Teleport a family of test states
Use three qubits and construct the protocol in the order below:
- Prepare the input on
q0. For a useful nontrivial test, addRYwith angle andRZwith angle . - Prepare a Bell pair on
q1,q2withHonq1and CNOT targets1,2. - Apply CNOT targets
0,1, thenHonq0. - Add conditional
Xonq2with conditionq1 = 1. - Add conditional
Zonq2with conditionq0 = 1.
Run the circuit and compare the final q2 Bloch values with the values obtained by running only the input preparation on a single qubit. They should agree up to numerical precision. Comparing a generic state is stronger than testing only |0⟩, because a missing correction can accidentally pass a basis-state test.
The conditional controls are classical feed-forward and cause measurement branches. The simulator averages over those branches in the reported final state. Before the correction bits are used, Bob’s reduced state is maximally mixed; after both corrections, every branch gives the same state on q2.
Superdense coding as a four-case regression test
Load Bell (2), apply one of I, X, Z or X followed by Z to q0, and then append CNOT targets 0,1 followed by H on q0. Run all four cases. The displayed outputs should be 00, 10, 01 and 11, respectively. QSim displays q0 as the rightmost bit of a ket, so the displayed strings reverse the q0 q1 ordering used in the protocol table above.
Export each version as JSON with a descriptive filename. This produces a small regression suite: if a control/target convention is misunderstood, at least two of the four cases will decode incorrectly.