RoundingResult

class RoundingResult(expectation_values, samples, bases=None, basis_shots=None, basis_counts=None)[source]

Bases: object

Result of rounding

Attributes

bases: np.ndarray | None = None

The bases used for the magic rounding

basis_counts: list[dict[str, int]] | None = None

The basis_counts represents the resulting counts obtained by measuring with the bases corresponding to the number of shots specified in basis_shots for the magic rounding.

basis_shots: np.ndarray | None = None

The number of shots used for each basis for the magic rounding

expectation_values: list[complex] | None

Expectation values

samples: list[SolutionSample]

List of samples after rounding

Methods