tk-pg-libs
An umbrella crate for pg-libs, TKET's Pauli graph libraries. It re-exports core types, transformation and synthesis passes, and supporting utilities.
Usage
This example uses Pauli graph passes to optimize and synthesize a two qubit circuit.
use ;
use ;
let mut pg = new;
for data in
let pg = new.transform;
let pg = new.transform;
let pg = new.transform;
let pg = new.transform;
Modules
| Module | Description |
|---|---|
core |
PauliGraph IR and the PGPass trait |
passes |
Canonical form, optimization, synthesis and rebasing passes |
tk_converter |
Conversions between PauliGraph and serialized TKET circuits |
qm_tableau |
Clifford tableaux using a qubit major memory layout |
bitpacked |
Clifford conjugation of Pauli operators using packed representations |
ir_kernels |
Basic rewrite operations and the PGTableau trait |
utils |
Utility functions for working with Pauli graphs |
SIMD
Some experimental SIMD features can be enabled with unstable_simd. These require a nightly Rust toolchain. Build with
cargo +nightly-2026-09-22 build, or use devenv shell --profile nightly before building.
License
This project is licensed under Apache License, Version 2.0 (LICENCE or https://www.apache.org/licenses/LICENSE-2.0).