tqec.computation.pipe.PipeKind#

class PipeKind(x: ZXBasis | None, y: ZXBasis | None, z: ZXBasis | None, has_hadamard: bool = False)[source]#

The kind of a pipe connecting two cubes in spacetime.

x#

The basis of the walls of the pipe in the X direction.

Type:

tqec.computation.cube.ZXBasis | None

y#

The basis of the walls of the pipe in the Y direction.

Type:

tqec.computation.cube.ZXBasis | None

z#

The basis of the walls of the pipe in the Z direction.

Type:

tqec.computation.cube.ZXBasis | None

has_hadamard#

If True, the pipe has a hadamard transition.

Type:

bool

__init__(x: ZXBasis | None, y: ZXBasis | None, z: ZXBasis | None, has_hadamard: bool = False) None#

Methods

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

from_cube_kind(cube_kind, direction, ...[, ...])

Infer the pipe kind from the endpoint cube kind and the pipe direction.

from_str(string)

Create a pipe kind from the string representation.

get_basis_along(direction[, at_head])

Get the basis of the kind in the given direction.

Attributes

direction

Get the connection direction of the pipe.

has_hadamard

is_spatial

Check if the pipe is spatial.

is_temporal

Check if the pipe is temporal.

x

y

z