iqm.benchmarks.quantum_volume.quantum_volume.heavy_projector

iqm.benchmarks.quantum_volume.quantum_volume.heavy_projector#

iqm.benchmarks.quantum_volume.quantum_volume.heavy_projector(probabilities: Dict[str, float]) Dict[str, float]#

Project (select) the samples from a given probability distribution onto heavy outputs.

Parameters:

probabilities (Dict[str, float]) – A dictionary of bitstrings and associated probabilities.

Returns:

The dictionary of heavy output bitstrings, all with weight 1.

Return type:

Dict[str, float]