DecodingGraphNode

class DecodingGraphNode(index, qubits=None, is_boundary=False, is_logical=False, time=None)[source]

Bases: object

Class to describe DecodingGraph nodes.

- is_boundary

whether or not the node is a boundary node.

Type:

bool

- is_logical

whether or not the node is a logical node.

Type:

bool

- time

what syndrome node the node corrsponds to. Doesn’t need to be set if it’s a boundary node.

Type:

int

- qubits

List of indices which are stabilized by this ancilla.

Type:

List[int]

- index

Unique index in measurement round.

Type:

int

- properties

Decoder/code specific attributes. Are not considered when comparing nodes.

Type:

Dict[str, Any]

Methods

get(key, default=None)[source]

Return value for given key.