cirq_google.workflow.execute
Execute a cg.QuantumExecutableGroup
according to a cg.QuantumRuntimeConfiguration
.
cirq_google.workflow.execute(
rt_config: cirq_google.workflow.QuantumRuntimeConfiguration
,
executable_group: cirq_google.workflow.QuantumExecutableGroup
,
base_data_dir: str = '.'
) -> cirq_google.workflow.ExecutableGroupResult
The ExecutableGroupResult's constituent parts will be saved to disk as they become
available. Within the "{base_data_dir}/{run_id}" directory we save:
- The `cg.QuantumRuntimeConfiguration` at the start of the execution as a record
of *how* the executable group was run.
- A `cg.SharedRuntimeInfo` which is updated throughout the run.
- An `cg.ExecutableResult` for each `cg.QuantumExecutable` as they become available.
- A `cg.ExecutableGroupResultFilesystemRecord` which is updated throughout the run.
Args |
rt_config
|
The cg.QuantumRuntimeConfiguration specifying how to execute
executable_group .
|
executable_group
|
The cg.QuantumExecutableGroup containing the executables to execute.
|
base_data_dir
|
Each data file will be written to the "{base_data_dir}/{run_id}/" directory,
which must not already exist.
|
Returns |
The cg.ExecutableGroupResult containing all data and metadata for an execution.
|
Raises |
NotImplementedError
|
If an executable uses the params field or anything other than
a BitstringsMeasurement measurement field.
|
ValueError
|
If base_data_dir is not a valid directory.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-27 UTC."],[],[]]