An interactive, purely functional quantum circuit prototyping tool and simulation backend built for real-world physics lab environments (specifically targeting NV-center qubit experiments).
Unlike standard educational visualizers, this tool was engineered to compute the underlying linear algebra of quantum state evolution, providing a robust bridge between high-level circuit design and low-level matrix mechanics.
-
Unitary Transformation Engine: Dynamically compiles sequential and concurrent gate applications into system-level unitary matrices (
$U^\dagger U = I$ ), ensuring strict adherence to the normalization constraint across deep circuits. - Pure State Simulation Backend: Executes state-vector propagation for multi-qubit systems, natively handling entanglement (e.g., Bell State generation) and interference.
-
Dynamic Controlled Operations: Implements algorithmic decomposition for
$n$ -qubit controlled gates, computing$M_{q_j=|0\rangle}$ and$M_{q_j=|1\rangle}$ conditionally to apply transformations without rank-collapse.
The core engine was architected with a modular state-representation layer. While currently optimized for pure-state vectors (
- Mixed-State Evolution
- Kraus Operator / Decoherence Modeling
- Custom Pulse-Level Control Sequences
- Language: Python 3 (Scientific Stack)
- Design Pattern: Decoupled interactive GUI / Mathematical Backend
- A local installation of Python 3.11+ &
pippackage manager pipinstall the dependencies in./src/requirements.txt.- E.g. follow this VSCode guide which includes command-line-only instructions.
- Or use an editor with support like Visual Studio Code with Python extensions or PyCharm
- Download Ghostscript and add to your
PATHto enable exporting circuits to images from the UI - Run the UI using your IDE/editor or from the root dir from the command line:
python ./src/ui/main.pyThe above set of instructions is verified to work with:
.venvand Visual Studio Code "run" button- PyCharm
.venvand running the UI from the command line
Vectors and icons by Catalin Fertu ("Bigmug Interface Icons") in CC Attribution License via SVG Repo
Designed by Freepik (CC Attribution License)
- More tests
Potential problems that are not necessarily real problems:
- Documentation for the gates (on hover in the toolbar) are placeholders
- Intended as of right now
TODO: make some .exes for windows and mac (and linux while we are at it).
