RoundingResult#

class RoundingResult(expectation_values, samples, bases=None, basis_shots=None, basis_counts=None)[ソース]#

ベースクラス: object

Result of rounding

Attributes

bases: 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: ndarray | None = None#

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

expectation_values: list[complex] | None#

Expectation values

samples: list[qiskit_optimization.algorithms.optimization_algorithm.SolutionSample]#

List of samples after rounding

Methods