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.

Classes

BlockGraph([name])

Block graph representation of a logical computation.

CorrelationSurface(span)

A correlation surface in a computation is a set of measurements whose values determine the parity of the logical operators at the inputs and outputs associated with the surface.

Cube(position, kind[, label])

A fundamental building block of the logical computation.

Pipe(u, v, kind)

A block connecting two Cube objects.

PipeKind(x, y, z[, has_hadamard])

The kind of a pipe in the block graph.

Port()

Cube kind representing the open ports in the block graph.

YHalfCube()

Cube kind representing the Y-basis initialization/measurements.

ZXCube(x, y, z)

The kind of cubes consisting of only X or Z basis boundaries.