PitchHut logo
Tpu-Accelerated-Quantum-JAX
Harness the power of JAX for state-of-the-art quantum simulations.
Pitch

This project offers a high-performance quantum state-vector and tensor network simulator built entirely in JAX. By leveraging NVIDIA GPUs and Google Cloud TPU clusters, it efficiently simulates complex quantum circuits with differentiability and noise resilience, enabling research and experimentation in quantum computing.

Description

Tpu-Accelerated-Quantum-JAX offers a high-performance, differentiable quantum state-vector and tensor network simulator that operates exclusively with JAX, eliminating dependencies on classical frameworks. It is optimized for execution on NVIDIA GPUs and Google Cloud TPU v6e-64/v5e clusters, enabling the simulation of up to 37-qubit systems with remarkable efficiency.

Key Features

  • 100% Pure JAX: Built without heavy dependencies such as Qiskit, Cirq, or Pennylane. The project compiles into a single monolithic XLA kernel, allowing for bare-metal execution speeds.
  • Multi-Device Sharding: Supports scaling to 36 qubits with a state-vector footprint of 549 GB, utilizing JAX’s PositionalSharding across a 64-chip Cloud TPU v6e mesh.
  • Reverse-Mode Auto-Differentiation: Enables precise gradient computations using jax.grad, facilitating fast training for various quantum algorithms such as Variational Quantum Eigensolver (VQE), Quantum Approximate Optimization Algorithm (QAOA), and Quantum Neural Networks (QNNs).
  • Hardware-Level Optimizations: Implements structured loop primitives to prevent XLA graph bloat and gradient rematerialization techniques to maintain memory complexity at O(1).
  • Stochastic Noise Support: Features built-in Monte Carlo trajectory simulations to manage open system dynamics and depolarizing noise for near-term quantum gates.

Directory Layout

The project is organized as follows:

.
├── gpu/                     # GPU Modular Simulator & Research scripts
│   ├── jax_qsim/            # Core contraction engine (tensordot + transpose)
│   └── quantum_research/    # VQE, QAOA, GHZ state preparation, noise trajectories
├── tpu/                     # TPU Scaling Suite (experiments and runners)
├── shors/                   # TPU-sharded Shor's Algorithm (33 qubits)
├── grover_simulation/       # Grover's Search (up to 36 qubits on 64 TPU chips)
├── tests/                   # Pytest verification suite
└── requirements.txt         # Core dependencies

Performance Summary

EnvironmentHardwareMax QubitsState-Vector FootprintGate Speed (10-q)
Local GPUNVIDIA RTX 2050 (4 GB VRAM)29~4.29 GB~0.01 ms
TPU Mesh (v5e-16)16x TPU v5e (256 GB aggregate HBM2e)3364.00 GB~0.01 ms
TPU Mesh (v6e-64)64x TPU v6e (2.0 TB aggregate HBM3)36549.76 GB~0.01 ms

Acknowledgements

Gratitude is extended to the TPU Research Cloud (TRC) program by Google for providing access to Cloud TPU v6e and v5e VM clusters, which facilitated this scale of research.

For further insights into the research, benchmarks, and in-depth technical details, visit ashitesh.me.

0 comments

No comments yet.

Sign in to be the first to comment.