Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.StabilizerState.sample_counts

StabilizerState.sample_counts(shots, qargs=None)

Sample a dict of qubit measurement outcomes in the computational basis.

Parâmetros
  • shots (int) – number of samples to generate.

  • qargs (None or list) – subsystems to sample measurements for, if None sample measurement of all subsystems (Default: None).

Retorno

sampled counts dictionary.

Tipo de retorno

Counts

Additional Information:

This function samples measurement outcomes using the measure probabilities() for the current state and qargs. It does not actually implement the measurement so the current state is not modified.

The seed for random number generator used for sampling can be set to a fixed value by using the stats seed() method.