tqec.gallery#

Collection of pre-built logical computations.

This module contains functions that build ZXGraph and BlockGraph instances representing the logical computations, including:

  • solo_node: logical memory

  • logical_cnot: logical CNOT gate

  • three_cnots: three logical CNOT gates compressed in spacetime

Functions

logical_cnot_block_graph(...)

Create a block graph for the logical CNOT gate.

logical_cnot_zx_graph(port_kind)

Create a ZX graph for the logical CNOT gate.

logical_cz_block_graph([support_flows])

Create a block graph for the logical CZ gate.

logical_cz_zx_graph([support_flows])

Create a ZX graph for the logical CZ gate.

move_rotation_block_graph(...)

Create a block graph for moving and rotating the spatial boundaries of a logical qubit.

move_rotation_zx_graph(port_kind)

Create a ZX graph for moving and rotating the spatial boundaries of a logical qubit.

solo_node_block_graph(support_observable_basis)

Create a block graph with a single cube that can support the given observable basis.

solo_node_zx_graph(kind)

Create a single node ZX graph with the given kind.

three_cnots_block_graph(support_observable_basis)

Create a block graph for three logical CNOT gates compressed in spacetime.

three_cnots_zx_graph(port_kind)

Create a ZX graph for three logical CNOT gates compressed in spacetime.