tqec.compile#

Provides classes and functions to compile a BlockGraph instance into a stim.Circuit.

This module defines the needed classes and functions to transform a BlockGraph instance into a fully annotated stim.Circuit instance that can be simulated using stim and even executed on available hardware.

Functions

compile_block_graph(block_graph[, ...])

Compile a block graph.

generate_circuit(template, k, plaquettes)

Generate a quantum circuit from a template and its plaquettes.

Classes

CubeSpec(kind[, spatial_arms])

Specification of a cube in a block graph.

PipeSpec(cube_specs, cube_templates, pipe_kind)

Specification of a pipe in a block graph.

TopologicalComputationGraph(...[, observables])

Represents a topological computation with Block instances.