Quantum Chess
Hi! Welcome to the Quantum Chess repo.
Chess is a much loved, classic game, but what happens when we give it a quantum twist? Quantum chess works on the same rules as classical chess, but each piece has quantum abilities too- you can put a piece in a superposition, or even entangle two pieces. Our version is built using Qiskit, and is a great way to demonstrate and understand quantum properties. The game needs a good understanding of how various probabilities interact, to be able to comprehend how the state collapses upon observation, which happens when the piece is either capturing or being captured, and decides the position of a piece in superposition. These probabilities are decided by the quantum state of the piece, and thus adds an element of chance to this game of strategy.
Clone the repo:
git clone https://github.com/SEDSCelestiaBPGC/quantum-chess.git QC
Qiskit is not compatible with Python 3.9.
Use v3.8 or less.
Recommendation:
Use Anaconda to create a virtual environment for python v3.8 or less, install relevant packages and run the game.
Install: Official Website Docs
Create a new python environment with desired python version:
conda create -n quantum-chess python=3.8
conda activate quantum-chess
pip install qiskit
pip install chess
pip install pyside2
Navigate to the cloned repo folder and run the game:
cd QC
python Code/Qboard.py