PipeSpec#
- class tqec.compile.PipeSpec(spec1, spec2, pipe_kind)[source]#
Bases:
object
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.
- spec2#
the cube specification of the second cube.
- pipe_type#
the type of the pipe connecting the two cubes.
Methods
__init__
(spec1, spec2, pipe_kind)Attributes
Detailed methods