FermionCircuitSolver.draw_shots¶
- FermionCircuitSolver.draw_shots(measurement_distribution)[source]¶
Helper function to draw counts from a given distribution of measurement outcomes.
- Parameters:
measurement_distribution (
List
[float
]) – List of probabilities of the individual measurement outcomes- Return type:
List
[str
]- Returns:
a list of individual measurement results, e.g. [“011000”, “100010”, …] The outcome of each shot is denoted by a binary string of the occupations of the individual modes in little endian convention
- Raises:
If the length of the given probabilities does not match the expected Hilbert space dimension. - If the number of shots self.shots has not been specified.