Running jobs
Blocking run
run() submits a circuit, waits for it to finish, and returns the result. It is the simplest way to execute a circuit.
python
result = sim.run(circuit, shots=256)
print(result)Note run() blocks until the job reaches a terminal state. For long jobs or many circuits, use submit() instead.