circuit_knitting.utils.conversion.dict_to_array¶
- dict_to_array(distribution_dict, force_prob)[source]¶
Convert dictionary of shot results to array of distribution.
Deprecated since version 0.7.0: The function
circuit_knitting.utils.conversion.dict_to_array()
is deprecated as of circuit-knitting-toolbox 0.7.0. It will be removed no sooner than CKT v0.8.0.- Parameters:
distribution_dict – The dictionary containing the shot information from circuit execution
force_prob – Whether to force the distribution to be normalized
- Returns:
The resulting probability information