qib.backend.wmi.wmi_experiment.WMIExperiment¶
- class qib.backend.wmi.wmi_experiment.WMIExperiment(name: str, circuit: Circuit, options: WMIOptions, configuration: ProcessorConfiguration, credentials: ProcessorCredentials, type: ExperimentType = ExperimentType.QASM)[source]¶
Bases:
ExperimentThe WMI quantum experiment implementation.
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).
Attributes
job_id- from_json(json: dict) WMIExperiment[source]¶
Update an experiment object from a JSON dictionary.
- 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
- results() WMIExperimentResults | 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.
- async wait_for_results() WMIExperimentResults | 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.