Built this a couple of years ago over a couple months. Super fun project. Python to communicate with the QC, C# for the unity env, they speak to one another over Layer 4.
- Load up the repository files in the Unity game engine.
- Initiate a Conda virtual environment using the requirements.txt inside the python folder. The reason for running this script is to take advantage of Qiskit's QuantumCircuit class and it's inbuilt statevector method which utilizes numpy's complex number systems and performs the behind the scenes mathematics for rotating the qubit's vector.
Note: If for some reason you are unable to install the packages in the requirements file, simply write "pip install qiskit" within the anaconda command line prompt then run the qiskitConnection.py using the same prompt.
- Run simulator in the unity engine, then execute the python script within the python folder (ensure python interpreter is the newly created conda virtual env) in order to enable socket communication.
- Gates should now be fully functional.
https://www.youtube.com/channel/UCq9B8tT3oXl8BSyaoBPQXQw/playlists
https://learn.qiskit.org/course/introduction/why-quantum-computing
