Hybrid Python–Fortran Language for Quantum Computing & HPC
PyTran is a research-grade language runtime that unifies:
- Python expressiveness
- Fortran-class numerical performance
- Optional GPU acceleration
- Quantum–classical hybrid workflows
It is designed for HPC, quantum simulation, and AI-assisted scientific computing, while remaining easy to install and run locally.
- 🔬 Hybrid kernels with Python syntax and Fortran-optimized execution
- ⚛️ Quantum-ready abstractions (circuits, qubits, operators, states)
- 🧠 AI-assisted decorators for generation and optimization
- ⚡ Optional GPU acceleration (CuPy)
- 🧩 Modular transpiler and code-generation architecture
- 🛠️ Works-on-first-run bootstrap installer
- Linux (Debian / Ubuntu / RHEL tested)
bashandcurl- No system Python required (isolated environment created automatically)
tar -xzf pytran-0.1.0.tar.gz
cd pytran-0.1.0
./bootstrap.shThis installs PyTran into an isolated environment under:
~/.local/share/pytran/envs/pytran
GPU support is opt-in. CPU installs do not download CUDA or CuPy.
./bootstrap.sh --extras gpusource ~/.local/share/pytran/envs/pytran/bin/activateIf you installed using a local prefix (for example --prefix ./.pytran_prefix):
source ./.pytran_prefix/envs/pytran/bin/activateQuick import check:
python -c "import pytran; print('PyTran imported successfully')"Run the built-in installation test:
python pytran/test_installation.pyfrom pytran import quantum_circuit, Circuit
@quantum_circuit
def bell_pair() -> Circuit:
circuit = Circuit(2)
circuit.h(0)
circuit.cnot(0, 1)
return circuit
c = bell_pair()
print(c.operations)pytran/core– decorators, types, language semanticspytran/transpiler– IR, optimization, code generationpytran/fortran– high-performance numerical kernelspytran/cuda– optional GPU backendspytran/quantum– quantum abstractions and workflows
Verify the release checksum:
sha256sum -c pytran-0.1.0.tar.gz.sha256- Version: 0.1.0
- Platform: Linux
- Stability: Research / Early-Access
- Distribution: GitHub Releases
- License: (add license if applicable)
- Native Fortran compilation pipeline
- CUDA kernel fusion and scheduling
- Quantum backend adapters (IBM, simulators)
- PyPI and Conda distribution
- Language server and IDE tooling
PyTran is under active development. Issues, discussions, and contributions are welcome.
Amit Brahmbhatt Founder & Lead Architect, Quantum-Clarity LLC