tqec.compile.specs.base.PipeSpec#

class PipeSpec(spec1: CubeSpec, spec2: CubeSpec, pipe_kind: PipeKind)[source]#

Specification of a pipe in a block graph.

The PipeSpec is used to determine the substitution rules between the two CompiledBlock`s connected by the pipe. The substitution rules are used to update the layers of the `CompiledBlock`s based on the plaquettes in the `Substitution.

spec1#

the cube specification of the first cube. By convention, the cube corresponding to spec1 should have a smaller position than the cube corresponding to spec2.

Type:

tqec.compile.specs.base.CubeSpec

spec2#

the cube specification of the second cube.

Type:

tqec.compile.specs.base.CubeSpec

pipe_type#

the type of the pipe connecting the two cubes.

__init__(spec1: CubeSpec, spec2: CubeSpec, pipe_kind: PipeKind) None#

Methods

__init__(spec1, spec2, pipe_kind)

Attributes

spec1

spec2

pipe_kind