arturml / quantum-neural-network

An attempt to implement a continuous-variable quantum neural network using Xanadu's strawberryfields.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Continuous-variable quantum neural networks

This is an attempt to implement one of the results of the paper Continuous-variable quantum neural networks using Xanadu's strawberryfields, which is "a full-stack Python library for designing, simulating, and optimizing continuous variable (CV) quantum optical circuits". More specifically, I used a variational quantum circuit to learn the sin(np.pi*x) function on the interval [-1,1]. The function implemented by the circuit before the optimization is a line:

before

After the optimization, it's more or less the sine function:

after

if you want to know more about the continuous-variable model of quantum computing, check out Xanadu's white paper.

About

An attempt to implement a continuous-variable quantum neural network using Xanadu's strawberryfields.


Languages

Language:Jupyter Notebook 100.0%