sample¶
-
sample
(self, backend=None, shots=1024, seed_simulator=None, memory=False)[source]¶ Sample a the output distribution from a quantum circuit.
- Parameters
backend (BaseBackend) – Backend to use. Default is Aer QASM simulator.
shots (imt) – Number of times to sample. Default is 1024.
seed_simulator (int) – Seed to use for simulator (if backend is a simulator).
memory (bool) – Return individual measurement results.
- Returns
A job instance with result_when_done attribute.
- Return type
job