tqec.computation#
Defines the data structures to represent the logical computations.
This module provides high-level abstractions to represent the fault-tolerant logical computations protected by surface code. There are two representations of the logical computation:
ZXGraph
: A restricted form of the ZX diagram from the ZX-calculus.BlockGraph
: A graph consisting of individual building blocks that fully specify the boundary conditions and topological structures of the logical computation. It corresponds to the commonly used 3D spacetime diagram representation of a surface code logical computation.
Classes
|
Block graph representation of a logical computation. |
|
A fundamental building block of the logical computation. |
|
Base class for the kinds of cubes in the block graph. |
|
A block connecting two |
|
The kind of a pipe in the block graph. |
|
Cube kind representing the open ports in the block graph. |
|
Cube kind representing the Y-basis initialization/measurements. |
|
The kind of cubes consisting of only X or Z basis boundaries. |
|
An edge connecting two neighboring nodes in the ZX graph. |
|
ZX graph representation of a logical computation. |
|
The kind of the node in the ZX graph. |
|
A node in the ZX graph. |