deltakit.core.decoding_graphs.DecodingEdge#

class deltakit.core.decoding_graphs.DecodingEdge(first_detector: int, second_detector: int)#

Bases: DecodingHyperEdge

Representation of an immutable decoding edge on a decoding graph, limited to standard graphs where edges connect two distinct detectors.

Parameters:
  • first_detector (int) – First detector this edge is incident to.

  • second_detector (int) – Second detector this edge is incident to.

Methods#

DecodingEdge.is_hooklike

Return True if this decoding edge is between the same data qubit at different time steps.

DecodingEdge.is_spacelike

Return True if this decoding edge is between the same data qubit at different time steps.

DecodingEdge.is_timelike

Return True if this decoding edge is between the same data qubit at different time steps.

DecodingEdge.to_decoding_edge

Cast this edge into a decoding edge if possible.