Quantum-native workloads
Statevectors and gate operations, expressed as focused computational kernels.
From quantum gates to accelerator kernels.
TritonQ brings programmable performance to quantum circuit simulation, building on FlagQuantum.
A CLOSER LOOK
Quantum operations become concrete when you can see the state change. Explore a circuit, then take the next step into the kernels.
Statevectors and gate operations, expressed as focused computational kernels.
Explore memory access, parallel execution, and specialization through Triton.
A standalone kernel project with roots in the broader quantum simulation workflow.
BEYOND A SINGLE PLATFORM
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* Specific devices and reproducible results will be documented separately. No performance figures are claimed here.
FROM IDEA TO IMPLEMENTATION
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 documentationBuilt in the open.
Early alpha. APIs may change as the project develops.
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⟩) / √2OPEN KERNELS. SHARED PROGRESS.
Explore the source, discuss a backend, or contribute a quantum kernel.