CircuitPoint

class CircuitPoint(cycle_or_tuple, qudit=None)[source]

Bases: Tuple[int, int]

A cycle and qudit index pair used to index a circuit.

This is a subclass of a tuple, and therefore can be used where a tuple of two ints can be used.

__init__()

Attributes

cycle

The point's cycle index.

qudit

The point's qudit index.

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

is_point(point)

Return true if point is a CircuitPointLike.