solo_node_block_graph#

tqec.gallery.solo_node_block_graph(support_observable_basis, is_stability_experiment=False)[source]#

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

A single cube represents a simple logical memory experiment or a stability experiment. For a memory experiment, the cube is initialized in a logical basis state corresponding to the given support_observable_basis. For a stability experiment, all the data qubits are initialized in the basis opposite to the given support_observable_basis. And the spatial boundary of the cube should support the given support_observable_basis.

Parameters:
  • support_observable_basis (Literal['Z', 'X']) – The observable basis that the block graph can support. Either “Z” or “X”.

  • is_stability_experiment (bool)

Returns:

A BlockGraph instance with a single cube that can support the given observable basis.

Return type:

BlockGraph