tqec.computation#
Define the main data structures to represent the logical computation.
Under the context of topological quantum error correction, the logical computations can be represented by the spacetime defect diagrams. The topological structure of the spacetime diagram guides the computation and implements the desired logical subroutines.
This package defines the two main graph data structure to represent the spacetime diagram of the logical computation:
The
ZXGraph
is in the form of a ZX-calculus graph and the representation is based on the correspondence between the ZX-calculus and the lattice surgery.The
BlockGraph
specifies the explicit block structures of the spacetime diagram, including the layout of the code patches, the boundary types and the connectivity of the patches across the spacetime. The block graph can be compiled and used to generate the concrete circuits that implement the logical computation.
Modules
Base class for graph data structures representing logical computations. |
|
Graph representation of a 3D logical computation by explicit blocks. |
|
Conversion between |
|
ZX graph representation of a 3D spacetime defect diagram. |
|