Skip to main content

Plain-Language Intuition

Mode: Simple / School
The classical one-time pad is the only encryption that is mathematically unbreakable: flip each message bit, or not, according to a secret random key that is used only once. Can a quantum state be encrypted the same way? A qubit can be wrong in two ways, in its bit value and in its phase, so two key bits are needed per qubit: - first key bit: apply an X gate (bit flip) or not; - second key bit: apply a Z gate (phase flip) or not. To someone without the key, the encrypted qubit is one of four possibilities mixed equally, which is indistinguishable from complete noise. No measurement reveals anything about the original state. The receiver, who knows the key, applies the same flips again in reverse order and recovers the state exactly. Step through the circuit and watch the Bloch arrow jump when encrypted and return when decrypted.

Quantum Cryptography

Quantum One-Time Pad: quick reference

Encrypts a qubit with random X and Z flips chosen by a two-bit key, so that without the key it looks like pure noise.

Topic
Quantum Cryptography
Level
Intermediate
Circuit size
1 Qubit
Key result
Perfectly hides a qubit using two secret key bits

Concepts covered: Quantum One-Time Pad, Pauli Encryption, Maximally Mixed State, Perfect Secrecy

How Quantum One-Time Pad works, step by step

  1. Prepare the Message Qubit. Prepare the secret message: a qubit pointing in a particular direction.
  2. Encrypt with the Key. Both key bits are 1, so apply an X flip and then a Z flip. The Bloch arrow jumps to a different direction.
  3. Decrypt with the Same Key. The receiver applies the same flips in reverse order: Z, then X. The arrow returns to where it started.
  4. Verify the Message. Undo the original preparation. The qubit returns to 0, confirming the message survived intact.
  5. Read the Result. The result is 0 every time, whichever key was used.

Frequently asked questions

What is Quantum One-Time Pad?

Encrypts a qubit with random X and Z flips chosen by a two-bit key, so that without the key it looks like pure noise. It is a intermediate-level topic in quantum cryptography.

How many qubits does the Quantum One-Time Pad circuit use?

The QuanBit tutorial uses a 1 qubit circuit. Key result: Perfectly hides a qubit using two secret key bits.

Can I simulate Quantum One-Time Pad online for free?

Yes. The interactive Quantum One-Time Pad tutorial at https://www.quanbit.tech/learn/quantum-one-time-pad runs free in the browser with nothing to install. You can step through the circuit gate by gate, watch the probabilities, statevector and Bloch spheres update, build the circuit yourself and take a short quiz.