Quantum Arithmetic
Quantum Half Adder: quick reference
Adds two bits reversibly with one Toffoli (carry) and one CNOT (sum), the building block of quantum arithmetic.
- Topic
- Quantum Arithmetic
- Level
- Intermediate
- Circuit size
- 3 Qubits
- Key result
- Adds every pair of inputs at once in superposition
Concepts covered: Reversible Computing, Quantum Arithmetic, Toffoli Gate, Carry and Sum Logic
How Quantum Half Adder works, step by step
- Load the Inputs. Set a (Q0) and b (Q1) to 1. Q2 starts at 0 and will receive the carry.
- Compute the Carry with a Toffoli. The Toffoli sets the carry to 1 only when both inputs are 1.
- Compute the Sum with a CNOT. A CNOT replaces b with "a XOR b", the sum bit. 1 + 1 gives sum 0.
- Read Carry and Sum. Reading left to right: carry 1, sum 0, input a = 1. So 1 + 1 = 10 in binary.
Frequently asked questions
What is Quantum Half Adder?
Adds two bits reversibly with one Toffoli (carry) and one CNOT (sum), the building block of quantum arithmetic. It is a intermediate-level topic in quantum arithmetic.
How many qubits does the Quantum Half Adder circuit use?
The QuanBit tutorial uses a 3 qubits circuit. Key result: Adds every pair of inputs at once in superposition.
Can I simulate Quantum Half Adder online for free?
Yes. The interactive Quantum Half Adder tutorial at https://www.quanbit.tech/learn/half-adder 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.