CountsResult

class hybridlane.measurements.base.CountsResult

Class for holding histogram results of CV-DV programs

counts: dict[int | float | tuple[int | float | complex, Ellipsis], int]

Histogram of basis states or eigenvalues and their frequency

wire_order: Wires | None = None

The order of the wires in each basis state

bases: BasisMap | None = None

Schema determining the basis each wire is measured in

property is_eigenvals

Whether the entries of the histogram are (scalar) eigenvalues of an observable

property is_basis_states

Whether the entries of the histogram are computational basis states

property shots

Returns the total number of shots contained in this result

__post_init__()