qiskit.providers.basicaer.QasmSimulatorPy.run¶
- QasmSimulatorPy.run(qobj, **backend_options)[source]¶
Run qobj asynchronously.
0.22.0_pending ভার্সন থেকে ডেপ্রিকেটেড: Using a qobj for the first argument to QasmSimulatorPy.run() is pending deprecation as of qiskit-terra 0.22.0. It will be marked deprecated in a future release, and then removed no earlier than 3 months after the release date.
- প্যারামিটার
qobj (Qobj) -- payload of the experiment
backend_options (dict) -- backend options
- রিটার্নস
derived from BaseJob
- রিটার্ন টাইপ
- 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), }