A quantum computing-based Pokémon Safari Zone game that uses Grover's Algorithm to search for Pokémon.
This game demonstrates quantum computing concepts by implementing Grover's Algorithm to search for Pokémon in a quantum Safari Zone. Players use quantum measurements to predict which Pokémon they'll encounter and try to catch them using Safari Balls.
- Quantum search using Grover's Algorithm
- Real-time quantum circuit simulation
- Probability-based catching mechanics
- Score tracking and Pokémon collection
- Beautiful web interface
- Python 3.8+
- Flask
- Qiskit
- NumPy
- Clone the repository:
git clone https://github.com/yourusername/catch-that-qubit.git
cd catch-that-qubit- Create a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Start the Flask server:
export FLASK_APP=app.py
export FLASK_DEBUG=1
flask run --port=5002- Open your browser and navigate to:
http://localhost:5002
- Click "Start Search" to begin a quantum search for a Pokémon
- The quantum circuit will predict which Pokémon you'll encounter
- Use Safari Balls to try to catch the Pokémon
- Your chances of catching increase with higher confidence predictions
- Try to catch as many different Pokémon as possible!
- Uses 4 qubits to represent 16 different Pokémon
- Implements Grover's Algorithm for quantum search
- Simulates quantum circuits using Qiskit's AerSimulator
- Achieves ~96% theoretical success rate with optimal iterations
MIT License - feel free to use this project for learning and experimentation!
Contributions are welcome! Please feel free to submit a Pull Request.