beforewards

MultiManager - Beforewards (qurry.qurrium.multimanager.beforewards)

class qurry.qurrium.multimanager.beforewards.Before(exps_config: dict[str, dict[str, Any]], circuits_num: dict[str, int], pending_pool: TagList[str | tuple[str, ...] | Literal['_onetime'] | Hashable, int], circuits_map: TagList[str, int], job_id: list[tuple[str | None, str | tuple[str, ...] | Literal['_onetime'] | Hashable]], job_taglist: TagList[str | tuple[str, ...] | Literal['_onetime'] | Hashable, str], index_taglist: TagList[str | tuple[str, ...] | Literal['_onetime'] | Hashable, int])[source]

dataNeccessary and expsMultiMain in V4 format.

circuits_map: TagList[str, int]

The map of circuits of each experiments in the index of pending, which multiple experiments shared.

circuits_num: dict[str, int]

The map with tags of index of experiments, which multiple experiments shared.

exps_config: dict[str, dict[str, Any]]

The dict of config of each experiments.

index_taglist: TagList[str | tuple[str, ...] | Literal['_onetime'] | Hashable, int]

The list of experiments index but grouped by tags, which multiple experiments shared.

job_id: list[tuple[str | None, str | tuple[str, ...] | Literal['_onetime'] | Hashable]]

The list of job_id in pending, which multiple experiments shared, it works only when executing experiments is remote.

job_taglist: TagList[str | tuple[str, ...] | Literal['_onetime'] | Hashable, str]

The list of job id but grouped by tags, which multiple experiments shared.

pending_pool: TagList[str | tuple[str, ...] | Literal['_onetime'] | Hashable, int]

The pool of pending jobs, which multiple experiments shared, it works only when executing experiments is remote.

classmethod read(export_location: Path, file_location: dict[str, str | dict[str, str]] | None = None, version: Literal['v5', 'v7'] = 'v5')[source]

Reads the data of :cls:`Before` from the file.

Parameters:
  • export_location (Path) – The location of exporting.

  • file_location (Optional[dict[str, Union[str, dict[str, str]]]) – The location of file.

  • version (Literal["v5", "v7"], optional) – The version of file. Defaults to “v5”.

Returns:

The data of :cls:`Before`.

Return type:

Before

qurry.qurrium.multimanager.beforewards.TagListKeyable

Type of keyable in :cls:`TagList`.

alias of str | tuple[str, …] | Literal[‘_onetime’] | Hashable