Simulating Circuits in Quantum Natural Language Processing using Tensor Networks
python -m venv venv
source ./venv/bin/activate
pip install -r requirements.txt
To test the output for a single sentence run the following and see result images ("circ.png", "string.png"). The simulation output will be printed out.
bash ./single_sent.sh
Set the hyperparameters for training in main.py and then run:
source ./venv/bin/activate
python main.py
Run the analyse.py script and specify the hyperparameters in chi.py