Professional Documents
Culture Documents
Quantum Machine Learning An Intro
Quantum Machine Learning An Intro
there can be multi-class classifiers as well e.g. a classi- Many data points are passed through the circuit and the
fier that predicts the mood of a person from the picture; measured data provides us with the raw data for making
in this case we can have multiple options for it such as a classifier.
happy, sad, excited, neutral, scared, etc. All of this working of encoding the data into a quantum
state can be conveniently encoded into feature mapping
Data to train CMS functions provided in the qiskit.circuit.library of Python.
the computer
A classifier There are currently 3 versions of these feature maps avail-
Known label able in this library,
of the data
A classifier
Known label
of the data ZZFeatureMap and PauliFeatureMap also provide two
options to choose the kind of entanglement, linear or cir-
cular.
Constructing a quantum classifier. After all the points have been mapped, they can be
used to make a quantum classifier of the user’s choice.
To make a quantum classifier we need to encode classi-
cal data into a quantum state. We do this by passing the
data through a parameterized quantum circuit aka the
variational quantum circuit. It is a special kind of quan-
MY PROJECT
tum circuit whose rotational parameters vary depending
on the iteration and the data being encoded. For differ-
ent data, the parameters will change accordingly to map For my project, I chose to make a Quantum classifier
it into a quantum state. After the basic encoding of clas- that would be able to distinguish between handwritten 0s
sical into quantum data, the qubits are entangled with and 1s using just 64-pixel images, and each pixel working
one another in the next step. In the end they are mea- on 4-bit grey-scale. The data for 0s and 1s were obtained
sured; giving us the mapping of the data for a classifier. from sklearn.dataset.digits library.
3
REFERENCES