This module defines immutable data structures that represent the different stages of circuit compilation:Documentation Index
Fetch the complete documentation index at: https://tsim.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- SamplingGraph: Result of parsing and reducing a circuit graph
- CompiledComponent: A single compiled connected component
- CompiledProgram: The full compiled circuit ready for sampling
class CompiledComponent
class CompiledProgram
class CompiledScalarGraphs
ScalarPrefactor (global phase, floatfactor, 2^power2,
optional approximate complex floatfactor). All arrays are static-shaped so
the whole struct can be traced under jax.jit.
class SamplingGraph
- Parsed from stim format
- Converted to a ZX graph
- Doubled (composed with adjoint)
- Reduced via zx.full_reduce
- Had its error basis transformed (Gaussian elimination: e → f)