FTQC Primitives
Build with abstractions designed for fault-tolerant quantum computing, including quantum data types, mid-circuit measurements, and automatic uncompute.
Developed for PsiQuantum's applications team since 2017, Workbench is purpose-built for the scale and complexity of fault-tolerant quantum algorithms. It brings together the tools needed to write algorithms, compare subroutines, compile large programs, estimate resources, and prepare for runtime execution. The result is a practical framework for turning quantum ideas into hardware-relevant results.
from psiqdk.workbench import QPU, Qubits
from psiqdk.workbench.qre import resource_estimator
qpu = QPU(num_qubits=8)
index = Qubits(4, "index", qpu)
target = Qubits(4, "target", qpu)
data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
# Write the value d into the target qubits register,
# controlled on the index qubits register being in state |i>
for i, d in enumerate(data):
target.x(d, cond=(index == i))
resources = resource_estimator(qpu).resources()
# Render circuit diagram
qpu.draw()
Build with abstractions designed for fault-tolerant quantum computing, including quantum data types, mid-circuit measurements, and automatic uncompute.
Scale to large circuits and runtime-style execution with support for streaming billions of operations without relying on fixed kernels.
Access more than 100 interoperable, FTQC-focused algorithm implementations, including alias sampling, quantum phase estimation, and more.
Generate logical resource estimates directly from Workbench programs to compare subroutines and understand algorithm costs.
Write, compile, and optimize quantum algorithms for a range of FTQC hardware architectures.
Iterate quickly with optimized C++ simulation, including native bit and Clifford simulators as well as GPU-powered tensor-network and state-vector simulation via CUDA-Q.
2.0.0 - 2026-05-27