QasmSimulatorPy.run¶
- QasmSimulatorPy.run(qobj, backend_options=None)[source]¶
Run qobj asynchronously.
- Parameters
qobj (Qobj) – payload of the experiment
backend_options (dict) – backend options
- Returns
derived from BaseJob
- Return type
- Additional Information:
- backend_options: Is a dict of options for the backend. It may contain
“initial_statevector”: vector_like
The “initial_statevector” option specifies a custom initial initial statevector for the simulator to be used instead of the all zero state. This size of this vector must be correct for the number of qubits in all experiments in the qobj.
Example:
backend_options = { "initial_statevector": np.array([1, 0, 0, 1j]) / np.sqrt(2), }