qiskit.providers.basicaer.QasmSimulatorPy.run_experiment¶
- QasmSimulatorPy.run_experiment(experiment)[source]¶
Run an experiment (circuit) and return a single experiment result.
- প্যারামিটার
experiment (QobjExperiment) -- experiment from qobj experiments list
- রিটার্নস
A result dictionary which looks something like:
{ "name": name of this experiment (obtained from qobj.experiment header) "seed": random seed used for simulation "shots": number of shots used in the simulation "data": { "counts": {'0x9: 5, ...}, "memory": ['0x9', '0xF', '0x1D', ..., '0x9'] }, "status": status string for the simulation "success": boolean "time_taken": simulation time of this single experiment }
- রিটার্ন টাইপ
dict
- রেইজেস
BasicAerError -- if an error occurred.