cirq_google.workflow.QuantumRuntimeConfiguration
User-requested configuration of how to execute a given cg.QuantumExecutableGroup
.
cirq_google.workflow.QuantumRuntimeConfiguration(
processor_record: 'cg.ProcessorRecord',
run_id: Optional[str] = None,
random_seed: Optional[int] = None,
qubit_placer: cirq_google.workflow.QubitPlacer
= NaiveQubitPlacer()
,
target_gateset: Optional[cirq.CompilationTargetGateset] = None
)
Args |
processor
|
The cg.AbstractEngineProcessor responsible for running circuits and providing
device information.
|
run_id
|
A unique str identifier for a run. If data already exists for the specified
run_id , an exception will be raised. If not specified, we will generate a UUID4
run identifier.
|
random_seed
|
An initial seed to make the run deterministic. Otherwise, the default numpy
seed will be used.
|
qubit_placer
|
A cg.QubitPlacer implementation to map executable qubits to device qubits.
The placer is only called if a given cg.QuantumExecutable has a problem_topology .
This subroutine's runtime is keyed by "placement" in RuntimeInfo.timings_s .
|
target_gateset
|
If not None , compile all circuits to this target gateset prior to
execution with cirq.optimize_for_target_gateset .
|
Attributes |
processor_record
|
Dataclass field
|
run_id
|
Dataclass field
|
random_seed
|
Dataclass field
|
qubit_placer
|
Dataclass field
|
target_gateset
|
Dataclass field
|
Methods
__eq__
__eq__(
other
)
Return self==value.
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."],[],[]]