tqec.compile.compile.CompiledGraph

class CompiledGraph(layout_slices: list[BlockLayout], observables: list[AbstractObservable])[source]

Represents a compiled block graph.

This class should be easy to scale and generate circuits directly.

layout_slices

a list of BlockLayout objects that represent the compiled blocks at contiguous time slices.

Type:

list[tqec.compile.block.BlockLayout]

observables

a list of AbstractObservable objects that represent the observables to be included in the compiled circuit.

Type:

list[tqec.sketchup.block_graph.AbstractObservable]

__init__(layout_slices: list[BlockLayout], observables: list[AbstractObservable]) None

Methods

__init__(layout_slices, observables)

generate_cirq_circuit(k[, noise_models])

Generate the cirq circuit from the compiled graph.

generate_stim_circuit(k[, noise_models])

Generate the stim circuit from the compiled graph.

scale_to(k)

Scale the compiled graph to the given scale k.

Attributes

layout_slices

observables