Korean
언어
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

IBMExperimentService

class IBMExperimentService(provider)[소스]

기반 클래스: 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.

매개변수

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.

참고

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.

반환

The experiment preferences.

반환 형식

Dict