arguments

MultiManager - Arguments (qurry.qurrium.multimanager.arguments)

class qurry.qurrium.multimanager.arguments.MultiCommonparams(summoner_id: str, summoner_name: str, tags: list[str], shots: int, backend: Backend | str, save_location: Path, export_location: Path, files: dict[str, str | dict[str, str]], jobstype: Literal['local', 'IBMQ', 'IBM', 'IBMRuntime', 'Qulacs', 'AWS_Bracket', 'Azure_Q'], pending_strategy: Literal['onetime', 'each', 'tags'], manager_run_args: BaseRunArgs | dict[str, Any], datetimes: DatetimeDict)[source]

Multiple jobs shared. argsMultiMain in V4 format.

backend: Backend | str

Backend to execute the circuits on, which multiple experiments shared.

classmethod build(raw_multiconfig: MultiCommonparamsRawdDict | dict[str, Any]) tuple[MultiCommonparams, dict[str, Any]][source]

Build MultiCommonparams from rawread file.

Parameters:

rawread_multiconfig (Union[MultiCommonparamsRawreadDict, dict[str, Any]]) – The MultiCommonparams in dictionary format.

Returns:

The MultiCommonparams and outfields.

Return type:

tuple[“MultiCommonparams”, dict[str, Any]]

datetimes: DatetimeDict

Alias for field number 11

static default_value() MultiCommonparamsDict[source]

These default value are used for autofill the missing value.

export_location: Path

Location of exporting experiment, export_location is the final result decided by experiment.

files: dict[str, str | dict[str, str]]

Alias for field number 7

jobstype: Literal['local', 'IBMQ', 'IBM', 'IBMRuntime', 'Qulacs', 'AWS_Bracket', 'Azure_Q']

Type of jobs to run multiple experiments. - jobstype: “local”, “IBMQ”, “IBM”, “AWS_Bracket”, “Azure_Q”

manager_run_args: BaseRunArgs | dict[str, Any]

Other arguments will be passed to IBMQJobManager()

pending_strategy: Literal['onetime', 'each', 'tags']

Type of pending strategy. - pendingStrategy: “default”, “onetime”, “each”, “tags”

classmethod rawread(mutlticonfig_name: Path | str, save_location: Path | str, export_location: Path | str) MultiCommonparamsRawdDict | dict[str, Any][source]

Build MultiCommonparams from rawread file.

Parameters:
  • mutlticonfig_name (Union[Path, str]) – The path of the rawread file.

  • save_location (Union[Path, str]) – The location of saving experiment.

  • export_location (Union[Path, str]) – The location of exporting experiment.

Returns:

Union[

MultiCommonparamsRawreadDict, dict[str, Any]

]: The MultiCommonparams in dictionary format.

save_location: Path

Location of saving experiment.

shots: int

1024), which multiple experiments shared.

Type:

Number of shots to run the program (default

summoner_id: str

ID of experiment of the multiManager.

summoner_name: str

Name of experiment of the multiManager.

tags: list[str]

Tags of experiment of the multiManager.

class qurry.qurrium.multimanager.arguments.MultiCommonparamsDict[source]

Default values for MultiCommonparams.

class qurry.qurrium.multimanager.arguments.MultiCommonparamsRawdDict[source]

Default values for MultiCommonparamsRawread.

qurry.qurrium.multimanager.arguments.PENDING_STRATEGY: list[Literal['onetime', 'each', 'tags']] = ['onetime', 'each', 'tags']

List of pending strategy.

qurry.qurrium.multimanager.arguments.PENDING_TARGET_PROVIDER: list[Literal['local', 'IBMQ', 'IBM', 'IBMRuntime', 'Qulacs', 'AWS_Bracket', 'Azure_Q']] = ['IBMQ', 'IBM', 'IBMRuntime']

List of backend provider.

qurry.qurrium.multimanager.arguments.PendingStrategyLiteral

Type of pending strategy.

alias of Literal[‘onetime’, ‘each’, ‘tags’]

qurry.qurrium.multimanager.arguments.PendingTargetProviderLiteral

Type of backend provider.

alias of Literal[‘local’, ‘IBMQ’, ‘IBM’, ‘IBMRuntime’, ‘Qulacs’, ‘AWS_Bracket’, ‘Azure_Q’]

qurry.qurrium.multimanager.arguments.v5_to_v7_field_transpose(rawread_multiconfig: dict[str, Any]) dict[str, Any][source]

Transpose the field name of V5 format to V7 format.

Parameters:

rawread_multiconfig (dict[str, Any]) – The field name of :cls:`MultiCommonparams` in V5 format.

Returns:

The field name of :cls:`MultiCommonparams` in V7 format.

Return type:

dict[str, Any]