Entanglement is the property of a multi-qubit state that cannot be written as a product of single-qubit states. It is the resource behind teleportation, superdense coding and most of the speedups in the algorithm pages, and the CHSH inequality is the cleanest way to show that it is more than classical correlation. This page covers how to tell whether a pure state is entangled, the standard families of entangled states, and the CHSH computation with numbers.

Entangled qubits are like two coins that always land the same way, however far apart they are. Image: JPNARPHY, CC BY-SA 4.0, via Wikimedia Commons.
Mental Model
- A pure two-qubit state is a product state exactly when its coefficient matrix has rank 1. Otherwise it is entangled.
- An entangled pair has a definite joint state and no definite individual states: each half on its own is maximally mixed in the Bell case.
- The four Bell states are an orthonormal basis of entangled states, and one H plus one CX makes any of them from a computational basis state.
- Correlations between the halves are real but cannot carry a message. Local statistics never change with what the other party does.
- CHSH puts a number on it: classical (local hidden variable) models cap out at 2, quantum mechanics reaches .
1. Product versus Entangled States
A general pure two-qubit state is . Arrange the amplitudes as the matrix . A product state has , which is a rank-1 matrix.
The Schmidt decomposition is the singular value decomposition of :
The number of nonzero is the Schmidt rank. Rank 1 means product, rank 2 means entangled. For two qubits there is a one-line test: for a product state. The quantity is the concurrence, which runs from 0 (product) to 1 (maximally entangled).
Worked example
has , determinant 0, so it is .
The Bell state has , determinant , concurrence 1 and Schmidt coefficients . Running SVD in numpy on all four Bell states gives singular values every time.
The earlier state from Measurement and the Born Rule has , so it is entangled, with concurrence .
2. The Bell States
The circuit is H on the first qubit followed by CX with the first qubit as control. Feeding in with on the control gives
so , , , . I checked all four by simulating the circuit in Qiskit. Run the circuit backwards and you have a Bell-basis measurement, which is the first half of teleportation.
Measure both qubits of in the basis and you get 00 or 11 with probability each. Measure in the basis and the two results still always agree. The correlation holds in every basis where both parties pick the same one. A pre-agreed classical answer sheet struggles to match that across all angles, and CHSH below makes the gap quantitative.
The reduced state of either qubit alone is , a coin flip with no direction. All information is in the joint state (see Density Matrices and Noise Channels for the partial trace).
3. Three Qubits: GHZ and W
With three qubits there are two inequivalent kinds of entanglement that cannot be converted into each other by local operations and classical communication (SLOCC):
They behave differently when a qubit is lost. Tracing out one qubit of GHZ leaves , a classical mixture with no entanglement left. Tracing out one qubit of W leaves a two-qubit state that is still entangled; I computed its concurrence numerically and got . GHZ is the more fragile resource and the usual benchmark for “how many qubits can I entangle on this chip”. W is more robust to loss. The single-qubit reduced states are for GHZ and for W.
4. No Signalling
Suppose Alice and Bob share . Whatever Alice does locally (any measurement, any unitary), Bob’s reduced state remains . His outcome distribution in any basis is uniform until he sees a classical message from Alice, so the shared pair transmits no information on its own. This is the no-signalling property and it is why teleportation and superdense coding still need a classical or physical channel.
5. The CHSH Inequality
Alice picks one of two observables and Bob one of . Define
In a local hidden-variable model every outcome is predetermined, so each run has with one bracket equal to and the other 0, giving . Brute-forcing all 16 assignments of confirms the maximum is 2.
Quantum mechanics exceeds it. Take and observables in the - plane, . Then
because and on . The optimal settings are
Worked example
The four correlators are , , and . So
Qiskit’s
expectation_valueon the Bell statevector returns 0.7071, 0.7071, 0.7071, -0.7071 and . On a real device you run four circuits, one per pair of settings, rotating each qubit with an before the readout, and you will see something below 2.83 because of noise. Any value above 2 beyond statistical error rules out the local model.
The bound is Tsirelson’s bound. A short argument: for observables squaring to the identity, , and each commutator has operator norm at most 2, so . No quantum state or measurement can beat , yet no-signalling alone would allow up to 4 (the Popescu-Rohrlich box), so quantum theory sits strictly between the two. CHSH violations were what the 2022 Nobel Prize in Physics (Aspect, Clauser, Zeilinger) recognised.
import numpy as np
from qiskit import QuantumCircuit
from qiskit.quantum_info import Statevector, SparsePauliOp
qc = QuantumCircuit(2)
qc.h(0)
qc.cx(0, 1)
bell = Statevector(qc)
def obs(t): # cos(t) Z + sin(t) X
return SparsePauliOp(["Z", "X"], [np.cos(t), np.sin(t)])
a, b = [0, np.pi / 2], [np.pi / 4, -np.pi / 4]
E = lambda i, j: bell.expectation_value(obs(a[i]).tensor(obs(b[j]))).real
print(E(0, 0) + E(0, 1) + E(1, 0) - E(1, 1)) # 2.828...Related
- Qubits and the Bloch Sphere for why entangled qubits have no sphere of their own.
- Quantum Gates for H and CX, the entangling pair.
- Measurement and the Born Rule for correlators and basis changes.
- Density Matrices and Noise Channels for the reduced state of half a Bell pair.
- Teleportation and Superdense Coding for what a Bell pair buys you.
- QGSS: Circuits for Real Hardware for the GHZ circuits that hardware has to route.
- Quantum Error Correction for entanglement spread across many qubits on purpose.