A quantum machine learning model for detecting if a Bell diagonal state is separable or not.
Bell diagonal states are created with randomised probability coefficients. The separability of the states are checked and saved as a labels for the data points. The features for the ML model are made by taking XX, YY and ZZ Pauli measurements of the states. The features are scaled to the interval [0, 2*Pi].
The classical features are encoded to the quantum circuit with phase gates and entangling gates. The rest of the quantum circuit acts as a neural network, where weights are updated by a classical optimiser to minimize the loss function. The Pauli Z observable measurements made at the end of the circuit act as the output of the QNN.
- Clone the repository.
- Create and activate a virtual environment.
- In project root run
to install all the dependencies.
pip install . - Run all of the cells in the
model.ipynbnotebook.