Skip to content

A quantum computing-based Pokémon Safari Zone game that uses Grover's Algorithm to search for Pokémon.

Notifications You must be signed in to change notification settings

andrewlidong/catch-that-qubit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catch That Qubit! 🎮

A quantum computing-based Pokémon Safari Zone game that uses Grover's Algorithm to search for Pokémon.

Overview

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.

Features

  • Quantum search using Grover's Algorithm
  • Real-time quantum circuit simulation
  • Probability-based catching mechanics
  • Score tracking and Pokémon collection
  • Beautiful web interface

Requirements

  • Python 3.8+
  • Flask
  • Qiskit
  • NumPy

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/catch-that-qubit.git
cd catch-that-qubit
  1. Create a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt

Running the Game

  1. Start the Flask server:
export FLASK_APP=app.py
export FLASK_DEBUG=1
flask run --port=5002
  1. Open your browser and navigate to:
http://localhost:5002

How to Play

  1. Click "Start Search" to begin a quantum search for a Pokémon
  2. The quantum circuit will predict which Pokémon you'll encounter
  3. Use Safari Balls to try to catch the Pokémon
  4. Your chances of catching increase with higher confidence predictions
  5. Try to catch as many different Pokémon as possible!

Technical Details

  • 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

License

MIT License - feel free to use this project for learning and experimentation!

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

A quantum computing-based Pokémon Safari Zone game that uses Grover's Algorithm to search for Pokémon.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published