- IBMExperimentService.experiments(limit=10, json_decoder=<class 'json.decoder.JSONDecoder'>, device_components=None, device_components_operator=None, experiment_type=None, experiment_type_operator=None, backend_name=None, tags=None, tags_operator='OR', start_datetime_after=None, start_datetime_before=None, hub=None, group=None, project=None, exclude_public=False, public_only=False, exclude_mine=False, mine_only=False, parent_id=None, sort_by=None, **filters)¶
Retrieve all experiments, with optional filtering.
By default, results returned are as inclusive as possible. For example, if you don’t specify any filters, all experiments visible to you are returned. This includes your own experiments as well as those shared with you, from all providers you have access to (not just from the provider you used to invoke this experiment service).
int]) – Number of experiments to retrieve.
Noneindicates no limit.
JSONDecoder]) – Custom JSON decoder to use to decode the retrieved experiments.
DeviceComponent]]]) – Filter by device components.
Operator used when filtering by device components. Valid values are
None, an analysis result’s device components must match exactly for it to be included.
If „contains“ is specified, an analysis result’s device components must contain at least the values specified by the device_components filter.
str]) – Experiment type used for filtering.
Operator used when filtering by experiment type. Valid values are
Noneis specified, an experiment’s type value must match exactly for it to be included.
If „like“ is specified, an experiment’s type value must contain the value specified by experiment_type. For example,
experiment_type="foo", experiment_type_operator="like"will match both
str]) – Backend name used for filtering.
str]]) – Filter by tags assigned to experiments.
Logical operator to use when filtering by job tags. Valid values are „AND“ and „OR“:
If „AND“ is specified, then an experiment must have all of the tags specified in tags to be included.
If „OR“ is specified, then an experiment only needs to have any of the tags specified in tags to be included.
datetime]) – Filter by the given start timestamp, in local time. This is used to find experiments whose start date/time is after (greater than or equal to) this local timestamp.
datetime]) – Filter by the given start timestamp, in local time. This is used to find experiments whose start date/time is before (less than or equal to) this local timestamp.
str]) – Filter by hub.
str]) – Filter by hub and group. hub must also be specified if group is.
str]) – Filter by hub, group, and project. hub and group must also be specified if project is.
bool]) – If
True, experiments with
share_level=public(that is, experiments visible to all users) will not be returned. Cannot be
Trueif public_only is
bool]) – If
True, only experiments with
share_level=public(that is, experiments visible to all users) will be returned. Cannot be
Trueif exclude_public is
bool]) – If
True, experiments where I am the owner will not be returned. Cannot be
Trueif mine_only is
bool]) – If
True, only experiments where I am the owner will be returned. Cannot be
Trueif exclude_mine is
str]) – Filter experiments by this parent experiment ID.
None]) – Specifies how the output should be sorted. This can be a single sorting option or a list of options. Each option should contain a sort key and a direction, separated by a semicolon. Valid sort keys are „start_datetime“ and „experiment_type“. Valid directions are „asc“ for ascending or „desc“ for descending. For example,
sort_by=["experiment_type:asc", "start_datetime:desc"]will return an output list that is first sorted by experiment type in ascending order, then by start datetime by descending order. By default, experiments are sorted by
**filters – Additional filtering keywords that are not supported and will be ignored.
A list of experiments. Each experiment is a dictionary containing the retrieved experiment data.
ValueError – If an invalid parameter value is specified.
IBMQApiError – If the request to the server failed.