Spanish
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.StabilizerState.sample_memory

StabilizerState.sample_memory(shots, qargs=None)[fuente]

Sample a list 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).

Devuelve

list of sampled counts if the order sampled.

Tipo del valor devuelto

np.array

Additional Information:

This function implements the measurement measure() method.

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