Command

graphqomb.command module

Command module for measurement pattern.

This module provides:

  • N: Preparation command.

  • E: Entanglement command.

  • M: Measurement command.

  • X: X correction command.

  • Z: Z correction command.

  • TICK: Time slice separator command.

  • Command: Type alias of all commands.

Command Classes

class graphqomb.command.N[source]

Preparation command.

node

The node index to be prepared.

Type:

int

coordinate

Optional coordinate for the node (2D or 3D).

Type:

tuple[float, …] | None

__init__(node, coordinate=None)
class graphqomb.command.E[source]

Entanglement command.

nodes

The node indices to be entangled.

Type:

tuple[int, int]

__init__(nodes)
class graphqomb.command.M[source]

Measurement command.

node

The node index to be measured.

Type:

int

meas_basis

The measurement basis.

Type:

MeasBasis

__init__(node, meas_basis)
class graphqomb.command.X[source]

X correction command.

node

The node index to apply the correction.

Type:

int

__init__(node)
class graphqomb.command.Z[source]

Z correction command.

node

The node index to apply the correction.

Type:

int

__init__(node)
class graphqomb.command.TICK[source]

Time slice separator command.

Marks the boundary between time slices. Commands between two consecutive TICK commands can be executed in parallel within the same time slice.

__init__()

Type Alias

graphqomb.command.Command

alias of N | E | M | X | Z | TICK