QPyth
QPyth is a professionally engineered, physically rigorous quantum computing library built on Qiskit. Moving beyond ideal statevector simulations, QPyth provides canonical implementations of advanced quantum algorithms, including Variational Quantum Eigensolvers (VQE) for multi-electron molecules, robust Quantum Error Correction (QEC) protocols, and seamless IBM Quantum hardware execution. Featuring a proprietary offline noise simulation engine powered by historical IBM device calibration data, QPyth ensures every component follows standard physical implementationsβdelivering real simulation, authentic hardware routing, and graceful dependency handling within a full-stack environment.
π Key Features
- Physically grounded quantum workflows β canonical implementations built on Qiskit, with textbook-aligned circuits and real simulation behavior.
- Molecular VQE β Hβ plus extended molecule support through the VQE stack, with physical and lightweight execution paths.
- IBM Quantum execution β run circuits on real IBM backends with configurable shots, backend routing, and runtime options.
- Hardware-calibrated noisy simulation β offline noise models derived from IBM calibration profiles for more realistic testing.
- Core quantum protocols β Bloch state analysis, Bell-state exploration, teleportation, and measurement-driven circuit demos.
- Quantum error correction β built-in Shor 9-qubit and Steane 7-qubit code implementations.
- Sacred-geometry modules β QRNG with phi-scaling and the 21-qubit TMT Sierpinski circuit.
- CLI + Web UI β interactive command-line interface plus optional FastAPI + React web UI for exploration.
π Quick Start
Installation
# Core package (Qiskit, Qiskit-Aer, NumPy)
pip install QPyth
# With physical VQE support (requires qiskit-algorithms, qiskit-nature, pyscf)
pip install QPyth[physical]
# With IBM Quantum hardware support (requires qiskit-ibm-runtime)
pip install QPyth[hardware]
# With web UI support (requires FastAPI, uvicorn)
pip install QPyth[web]
# Development mode (all extras)
pip install -e .[dev,physical,web,hardware]
CLI Mode
Web UI Mode
# Start the FastAPI backend
python server.py # http://localhost:8000
# Start the React frontend (in a separate terminal)
cd web
npm install
npm run dev # http://localhost:3000
π Documentation
- Installation Guide - Detailed installation instructions
- Quickstart - Get started with QPyth in minutes
- User Guide - Comprehensive usage documentation
- API Reference - Complete API documentation
- Examples - Code examples and tutorials
π€ Contributing
Contributions are welcome! Please see our Contributing Guide for details.
π License
QPyth is licensed under the Apache License 2.0. See LICENSE for details.