Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

Aviso

The package qiskit-ibmq-provider is being deprecated and its repo is going to be archived soon. Please transition to the new packages. More information in https://ibm.biz/provider_migration_guide

IBMExperimentService

class IBMExperimentService(provider)[código fonte]

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 of AccountProvider is an instance of this class, and the main syntax for using the service is provider.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.

Parâmetros

provider (AccountProvider) – IBM Quantum Experience account provider.

Methods

analysis_result

Retrieve a previously stored experiment.

analysis_results

Retrieve all analysis results, with optional filtering.

backends

Return a list of backends that can be used for experiments.

create_analysis_result

Create a new analysis result in the database.

create_experiment

Create a new experiment in the database.

create_figure

Store a new figure in the database.

delete_analysis_result

Delete an analysis result.

delete_experiment

Delete an experiment.

delete_figure

Delete an experiment plot.

device_components

Return the device components.

experiment

Retrieve a previously stored experiment.

experiments

Retrieve all experiments, with optional filtering.

figure

Retrieve an existing figure.

save_preferences

Stores experiment preferences on disk.

update_analysis_result

Update an existing analysis result.

update_experiment

Update an existing experiment.

update_figure

Update an existing figure.

Attributes

preferences

Return saved experiment preferences.

Nota

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.

Retorno

The experiment preferences.

Tipo de retorno

Dict