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

BlockBuilder(*args, **kwargs)

Protocol for building a CompiledBlock based on a CubeSpec.

CompiledBlock(template, layers)

Represents a specific implementation of a cube in a BlockGraph.

CompiledGraph(layout_slices, observables)

Represents a compiled block graph.

CubeSpec(kind[, spatial_arms])

Specification of a cube in a block graph.

PipeSpec(spec1, spec2, pipe_kind)

Specification of a pipe in a block graph.

SubstitutionBuilder(*args, **kwargs)

Protocol for building the Substitution based on a PipeSpec.