# qiskit.providers.basicaer.UnitarySimulatorPy.run_experiment¶

UnitarySimulatorPy.run_experiment(experiment)[소스]

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":
{
"unitary": [[[0.0, 0.0], [1.0, 0.0]],
[[1.0, 0.0], [0.0, 0.0]]]
},
"status": status string for the simulation
"success": boolean
"time taken": simulation time of this single experiment
}


반환 형식

dict

예외
• BasicAerError – if the number of qubits in the circuit is greater than 24.

• Note that the practical qubit limit is much lower than 24.