qib.backend.experiment.Experiment¶
- class qib.backend.experiment.Experiment[source]¶
Bases:
ABCParent class for a quantum experiment.
The actual quantum experiment performed on a given quantum processor.
Methods
Get the Qobj OpenQASM representation of the experiment.
Cancel a previously submitted experiment.
Update an experiment object from a JSON dictionary.
Query the current status of a previously submitted experiment.
Get the results of a previously submitted experiment (BLOCKING).
Wait for the results of a previously submitted experiment (NON-BLOCKING).
- abstract from_json(json: dict) Experiment[source]¶
Update an experiment object from a JSON dictionary.
- abstract query_status() ExperimentStatus[source]¶
Query the current status of a previously submitted experiment.
If the experiment was already executed successfully when calling this method, the results will be automatically populated
- abstract results() ExperimentResults | None[source]¶
Get the results of a previously submitted experiment (BLOCKING).
If the experiment execution resulted in an error or was previously cancelled, None is returned.
- abstract async wait_for_results() ExperimentResults | None[source]¶
Wait for the results of a previously submitted experiment (NON-BLOCKING).
If the experiment execution resulted in an error or was previously cancelled, None is returned.