# qiskit.providers.basicaer.QasmSimulatorPy.run¶

QasmSimulatorPy.run(qobj, **backend_options)[source]

Run qobj asynchronously.

Parameters
• qobj (Qobj) – payload of the experiment

• backend_options (dict) – backend options

Returns

derived from BaseJob

Return type

BasicAerJob

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),
}