Topological Quantum Compiler (TQC)
The first universal compiler for quantum computers based on topological principles.
TQC moves beyond fragile gate-based quantum operations by compiling quantum algorithms into fault-tolerant braiding operations of anyonic quasiparticles. This revolutionary approach promises inherently stable quantum computation through topological protection.
🌟 Key Features
- Topological Compilation: Translate quantum circuits into anyonic braid operations
- Fault Tolerance: Inherent error protection through topological properties
- Multiple Anyon Types: Support for Fibonacci, Ising, and other anyonic systems
- Advanced Simulation: Efficient tensor network simulation of many-anyon systems
- Optimization: Solovay-Kitaev-style approximation algorithms for braid optimization
- Visualization: Generate beautiful braid diagrams and topological visualizations
🚀 Quick Start
from tqc import TopologicalCompiler, FibonacciAnyons
from qiskit import QuantumCircuit
# Create a simple quantum circuit
qc = QuantumCircuit(2, 2)
qc.h(0)
qc.cx(0, 1)
qc.measure_all()
# Compile to topological braids
compiler = TopologicalCompiler(anyon_type=FibonacciAnyons())
braid_program = compiler.compile(qc)
# Simulate the braided computation
result = braid_program.simulate(shots=1000)
print(f"Measurement results: {result.counts}")
# Visualize the braid
braid_program.visualize_braid(output="bell_state_braid.svg")
📦 Installation
# Via pip
pip install topological-quantum-compiler
# Via poetry
poetry add topological-quantum-compiler
# Development installation
git clone https://github.com/krish567366/TQC.git
cd TQC
poetry install
🔬 What Makes TQC Revolutionary
Traditional quantum computers suffer from:
- Fragile qubits sensitive to environmental noise
- High error rates requiring extensive error correction
- Limited coherence times constraining algorithm complexity
TQC solves these problems by encoding quantum information in the topological properties of anyonic braids, which are:
- Naturally fault-tolerant - protected by energy gaps
- Stable against local perturbations - only global changes affect computation
- Scalable - complexity grows polynomially with system size
📚 Documentation
🎯 Example Applications
# VQE with topological compilation
from tqc.algorithms import TopologicalVQE
from tqc.chemistry import H2Molecule
molecule = H2Molecule(bond_length=0.74)
vqe = TopologicalVQE(molecule, anyon_type="fibonacci")
energy = vqe.run()
# Quantum machine learning with anyonic features
from tqc.ml import AnyonicFeatureMap
feature_map = AnyonicFeatureMap(n_qubits=4, anyon_type="ising")
quantum_kernel = feature_map.to_kernel()
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Created by Krishna Bajpai (krishna@krishnabajpai.me)
- Based on groundbreaking research in topological quantum computation
- Inspired by the work of Kitaev, Freedman, and other pioneers in the field
- Built on the shoulders of excellent libraries like Qiskit, JAX, and NumPy
📞 Support
- 📖 Documentation
- 🐛 Issue Tracker
- 💬 Discussions
- 📧 Contact: Krishna Bajpai krishna@krishnabajpai.me
"The future of quantum computing is topological." - Krishna Bajpai, TQC Creator
Metadata
Release files for topological-quantum-compiler 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| topological_quantum_compiler-0.1.0.tar.gz | 33.3 kB | Without provenance | Details for topological_quantum_compiler-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| topological_quantum_compiler-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for topological_quantum_compiler-0.1.0-py3-none-any.whl |
Total release size: 63.4 kB
Release files / topological_quantum_compiler-0.1.0.tar.gz
| Download URL | topological_quantum_compiler-0.1.0.tar.gz |
|---|---|
| Size | 33.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b43dc9571f7febb3f7b135065911395bee42c681d6d5dec677d7f7a920658f8
|
|
BLAKE2b-256 checksum How to use checksums |
78a4619296fa2c1c5e26e7f0e376ed333aec3201a992aefbc0abf1505f5db5a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / topological_quantum_compiler-0.1.0-py3-none-any.whl
| Download URL | topological_quantum_compiler-0.1.0-py3-none-any.whl |
|---|---|
| Size | 30.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
689211f0b31384a20caa507acc8109264d34bec1313ccab3f366c4a6e5e388fd
|
|
BLAKE2b-256 checksum How to use checksums |
4c3035f63323c0767454089b44576a60976c04cb343cce68bd925411596e27ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Security for topological-quantum-compiler 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.