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
- Prepare the Message Qubit. Prepare the secret message: a qubit pointing in a particular direction.
- 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.
- Decrypt with the Same Key. The receiver applies the same flips in reverse order: Z, then X. The arrow returns to where it started.
- Verify the Message. Undo the original preparation. The qubit returns to 0, confirming the message survived intact.
- 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.