Shortcuts

qiskit.providers.ibmq.experiment.Experiment

class Experiment(provider, backend_name, experiment_type, extra=None, tags=None, start_datetime=None, end_datetime=None, experiment_uuid=None, plot_names=None, analysis_results=None, hub=None, group=None, project=None)[source]

Class representing an experiment.

Experiment constructor.

Parameters
  • provider (AccountProvider) – the account provider.

  • backend_name (str) – Name of the backend.

  • experiment_type (str) – Experiment type.

  • extra (Optional[Dict]) – Extra information about the experiment.

  • tags (Optional[List[str]]) – Tags for the experiment.

  • start_datetime (Optional[datetime]) – Timestamp when the experiment started. If no timezone information is present, local timezone is assumed.

  • end_datetime (Optional[datetime]) – Timestamp when the experiment ended. If no timezone information is present, local timezone is assumed.

  • experiment_uuid (Optional[str]) – Unique identifier of the experiment.

  • plot_names (Optional[List[str]]) – A list of plot names for this experiment.

  • analysis_results (Optional[List[AnalysisResult]]) – A list of analysis results associated with this experiment.

  • hub (Optional[str]) – The hub to which this experiment belongs. If not specified the hub from the provider is used.

  • group (Optional[str]) – The group to which this experiment belongs. If not specified the group from the provider is used.

  • project (Optional[str]) – The project to which this experiment belongs. If not specified the project from the provider is used.

Raises

ExperimentError – If the provider does not offer experiment services.

__init__(provider, backend_name, experiment_type, extra=None, tags=None, start_datetime=None, end_datetime=None, experiment_uuid=None, plot_names=None, analysis_results=None, hub=None, group=None, project=None)[source]

Experiment constructor.

Parameters
  • provider (AccountProvider) – the account provider.

  • backend_name (str) – Name of the backend.

  • experiment_type (str) – Experiment type.

  • extra (Optional[Dict]) – Extra information about the experiment.

  • tags (Optional[List[str]]) – Tags for the experiment.

  • start_datetime (Optional[datetime]) – Timestamp when the experiment started. If no timezone information is present, local timezone is assumed.

  • end_datetime (Optional[datetime]) – Timestamp when the experiment ended. If no timezone information is present, local timezone is assumed.

  • experiment_uuid (Optional[str]) – Unique identifier of the experiment.

  • plot_names (Optional[List[str]]) – A list of plot names for this experiment.

  • analysis_results (Optional[List[AnalysisResult]]) – A list of analysis results associated with this experiment.

  • hub (Optional[str]) – The hub to which this experiment belongs. If not specified the hub from the provider is used.

  • group (Optional[str]) – The group to which this experiment belongs. If not specified the group from the provider is used.

  • project (Optional[str]) – The project to which this experiment belongs. If not specified the project from the provider is used.

Raises

ExperimentError – If the provider does not offer experiment services.

Methods

__init__(provider, backend_name, experiment_type)

Experiment constructor.

from_remote_data(provider, remote_data)

Create an instance of this class from remote data.

refresh()

Update this experiment instance with remote data.

update_from_remote_data(remote_data)

Update the attributes of this instance using remote data.

Attributes

analysis_results

Return analysis results associated with this experiment.

backend_name

Return the experiment’s backend name.

creation_datetime

Return the timestamp when the experiment was created.

end_datetime

Return the timestamp when the experiment ended.

group

Return the experiment’s group.

hub

Return the experiment’s hub.

plot_names

Return names of plots associated with this experiment.

project

Return the experiment’s project.

start_datetime

Return the timestamp when the experiment started.

updated_datetime

Return the timestamp when the experiment was last updated.

uuid

Return the experiment’s uuid.

property analysis_results

Return analysis results associated with this experiment.

Return type

List

property backend_name

Return the experiment’s backend name.

Return type

str

property creation_datetime

Return the timestamp when the experiment was created.

Return type

Optional[datetime]

property end_datetime

Return the timestamp when the experiment ended.

Return type

Optional[datetime]

classmethod from_remote_data(provider, remote_data)[source]

Create an instance of this class from remote data.

Parameters
  • provider (AccountProvider) – account provider.

  • remote_data (Dict) – Remote data to use.

Return type

Experiment

Returns

An instance of this class.

property group

Return the experiment’s group.

Return type

str

property hub

Return the experiment’s hub.

Return type

str

property plot_names

Return names of plots associated with this experiment.

Return type

List

property project

Return the experiment’s project.

Return type

str

refresh()[source]

Update this experiment instance with remote data.

Return type

None

property start_datetime

Return the timestamp when the experiment started.

Return type

datetime

update_from_remote_data(remote_data)[source]

Update the attributes of this instance using remote data.

Parameters

remote_data (Dict) – Remote data used to update this instance.

Return type

None

property updated_datetime

Return the timestamp when the experiment was last updated.

Return type

Optional[datetime]

property uuid

Return the experiment’s uuid.

Return type

str

You are viewing lang: English
Languages
English
Japanese
German
Korean