TritonQGitHub
TRITON × QUANTUM COMPUTING

Quantum simulation,
powered by Triton.

From quantum gates to accelerator kernels.
TritonQ brings programmable performance to quantum circuit simulation, building on FlagQuantum.

Open sourceApache 2.0Early alpha
|ψ⟩ → KERNEL → |ψ′⟩TritonQ: a dimensional T inside an orbital QQUANTUM WORKLOADS. PROGRAMMABLE HARDWARE.
Built around the computation.
Quantum circuits
·
Triton kernels
·
Accelerator backends

A CLOSER LOOK

Small gates.
Powerful possibilities.

Quantum operations become concrete when you can see the state change. Explore a circuit, then take the next step into the kernels.

Circuit playgroundInteractive illustration · runs in your browser
QUANTUM CIRCUIT

MEASUREMENT PROBABILITIES
ψ

Quantum-native workloads

Statevectors and gate operations, expressed as focused computational kernels.

{ }

Control at the kernel level

Explore memory access, parallel execution, and specialization through Triton.

⌘

Connected to FlagQuantum

A standalone kernel project with roots in the broader quantum simulation workflow.

BEYOND A SINGLE PLATFORM

Quantum kernels.
A wider hardware horizon.

Triton-based quantum simulation has been run on Chinese-developed accelerator hardware in the FlagQuantum workflow.

Support depends on the backend and kernel. The standalone TritonQ alpha currently documents a CUDA device requirement; broader FlagQuantum validation does not automatically certify this package.

Explore FlagQuantum
Execution landscape Current scope
EnvironmentProject status
CPU referenceNumPy implementation
Available in alpha
CUDA + TritonCompatible PyTorch / Triton stack
Kernel included
Chinese-developed acceleratorsFlagQuantum workflow
Execution validated*

* Specific devices and reproducible results will be documented separately. No performance figures are claimed here.

FROM IDEA TO IMPLEMENTATION

Start with
a real operation.

The initial alpha focuses on one- and two-qubit diagonal gates on batched statevectors, with a NumPy reference and a Triton implementation.

Read the project documentation
α

Built in the open.
Early alpha. APIs may change as the project develops.

diagonal_reference.py
import numpy as np
from tritonq import apply_diagonal_reference

# Prepare a two-qubit Bell state
state = np.array(
    [[1, 0, 0, 1]], dtype=np.complex64
) / np.sqrt(2)

# Apply a Z gate to qubit 0
result = apply_diagonal_reference(
    state, [1, -1], qubits=(0,)
)

# (|00⟩ − |11⟩) / √2
Python · NumPy referenceNo GPU required

OPEN KERNELS. SHARED PROGRESS.

Help shape what comes next.

Explore the source, discuss a backend, or contribute a quantum kernel.

Join us on GitHub