qiskit_addon_sqd.counts.generate_counts_uniform¶
- generate_counts_uniform(num_samples, num_bits, rand_seed=None)[source]¶
Generate a bitstring counts dictionary of samples drawn from the uniform distribution.
- Parameters:
- Returns:
A dictionary mapping bitstrings of length
num_bits
to the number of times they were sampled.- Raises:
ValueError –
num_samples
andnum_bits
must be positive integers.- Return type: