Quantum Information
Quantum Random Access Code: quick reference
Packs two classical bits into one qubit so that either bit, but not both, can be recovered with 85.4% probability.
- Topic
- Quantum Information
- Level
- Advanced
- Circuit size
- 1 Qubit
- Key result
- 85.4% success vs 75% for the best classical encoding
Concepts covered: Random Access Codes, Conjugate Bases, Holevo Bound, Measurement Trade-offs
How Quantum Random Access Code works, step by step
- Tilt the Qubit Between Two Axes. Six small gates rotate the arrow to point halfway between "up" (Z) and "right" (X). This is the code for 00.
- Encode the Two Bits. An X gate flips the arrow's up/down part if the first bit is 1. A Z gate flips its right/left part if the second bit is 1. Here only X is applied.
- Choose Which Bit to Read. Bob wants the second bit, so he applies a Hadamard to measure right/left instead of up/down.
- Read the Answer. Bob reads 0, the correct value of the second bit, 85.4% of the time.
Frequently asked questions
What is Quantum Random Access Code?
Packs two classical bits into one qubit so that either bit, but not both, can be recovered with 85.4% probability. It is a advanced-level topic in quantum information.
How many qubits does the Quantum Random Access Code circuit use?
The QuanBit tutorial uses a 1 qubit circuit. Key result: 85.4% success vs 75% for the best classical encoding.
Can I simulate Quantum Random Access Code online for free?
Yes. The interactive Quantum Random Access Code tutorial at https://www.quanbit.tech/learn/qrac 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.