rdisipio / qlstm

Example of a Quantum LSTM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example of a Quantum LSTM

Get the code:

git clone https://github.com/rdisipio/qlstm.git
cd qlstm

Create a Python 3.x virtual environment and install libraries:

python3 -m venv qml
source qml/bin/activate
pip3 install --upgrade pip
pip3 install -r requirements.txt

Test if it works with the classical LSTM from PyTorch:

$ ./example_pos.py -E 8 -H 4 -Q 0 -e 300

If everything works, you should see a training history like this:

alt text

About

Example of a Quantum LSTM


Languages

Language:Jupyter Notebook 88.5%Language:Python 11.5%