Quantum Machine Learning
Quantum Kernel Estimation: quick reference
Encodes two data points into quantum states and measures their overlap, the kernel used by quantum support vector machines.
- Topic
- Quantum Machine Learning
- Level
- Advanced
- Circuit size
- 2 Qubits
- Key result
- Similarity measured in an exponentially large feature space
Concepts covered: Quantum Feature Maps, Kernel Methods, State Overlap, Quantum Machine Learning
How Quantum Kernel Estimation works, step by step
- Create Superposition. Hadamards prepare the qubits to hold data as phase angles.
- Encode the First Data Point. Each feature of the data point becomes a phase angle: a T gate for π/4 on Q0 and an S gate for π/2 on Q1.
- Un-Encode the Second Data Point. Apply the second point's angles in reverse. Where the two points agree, the rotations cancel.
- Interfere. Closing Hadamards turn any leftover angle into a chance of reading 1.
- Read the Kernel Value. The all-zeros outcome appears about 85% of the time: these two points are quite similar.
Frequently asked questions
What is Quantum Kernel Estimation?
Encodes two data points into quantum states and measures their overlap, the kernel used by quantum support vector machines. It is a advanced-level topic in quantum machine learning.
How many qubits does the Quantum Kernel (QSVM) circuit use?
The QuanBit tutorial uses a 2 qubits circuit. Key result: Similarity measured in an exponentially large feature space.
Can I simulate Quantum Kernel (QSVM) online for free?
Yes. The interactive Quantum Kernel (QSVM) tutorial at https://www.quanbit.tech/learn/quantum-kernel 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.