IBMExperimentService¶
-
class
IBMExperimentService
(provider)[source]¶ Bases:
object
Provides experiment related services.
This class is the main interface to invoke IBM Quantum experiment service, which allows you to create, delete, update, query, and retrieve experiments, experiment figures, and analysis results. The
experiment
attribute ofAccountProvider
is an instance of this class, and the main syntax for using the service isprovider.experiment.<action>
. For example:from qiskit import IBMQ provider = IBMQ.load_account() # Retrieve all experiments. experiments = provider.experiment.experiments() # Retrieve experiments with filtering. experiment_filtered = provider.experiment.experiments(backend_name='ibmq_athens') # Retrieve a specific experiment using its ID. experiment = provider.experiment.experiment(EXPERIMENT_ID) # Upload a new experiment. new_experiment_id = provider.experiment.create_experiment( experiment_type="T1", backend_name="ibmq_athens", metadata={"qubits": 5} ) # Update an experiment. provider.experiment.update_experiment( experiment_id=EXPERIMENT_ID, share_level="Group" ) # Delete an experiment. provider.experiment.delete_experiment(EXPERIMENT_ID)
Similar syntax applies to analysis results and experiment figures.
IBMExperimentService constructor.
- Parameters
provider (
AccountProvider
) – IBM Quantum Experience account provider.
Methods
Retrieve a previously stored experiment.
Retrieve all analysis results, with optional filtering.
Return a list of backends that can be used for experiments.
Create a new analysis result in the database.
Create a new experiment in the database.
Store a new figure in the database.
Delete an analysis result.
Delete an experiment.
Delete an experiment plot.
Return the device components.
Retrieve a previously stored experiment.
Retrieve all experiments, with optional filtering.
Retrieve an existing figure.
Stores experiment preferences on disk.
Update an existing analysis result.
Update an existing experiment.
Update an existing figure.
Attributes
-
preferences
¶ Return saved experiment preferences.
Note
These are preferences passed to the applications that use this service and have no effect on the service itself. It is up to the application, such as
qiskit-experiments
to implement the preferences.- Returns
The experiment preferences.
- Return type
Dict