cirq_google.engine.engine_validator.validate_for_engine
Validate a circuit and sweeps for sending to the Quantum Engine API.
cirq_google.engine.engine_validator.validate_for_engine(
circuits: Sequence[cirq.AbstractCircuit],
sweeps: Sequence[cirq.Sweepable],
repetitions: Union[int, Sequence[int]],
max_moments: int = MAX_MOMENTS,
max_repetitions: int = MAX_TOTAL_REPETITIONS
) -> None
Args |
circuits
|
A sequence of cirq.Circuit objects to validate. For
sweeps and runs, this will be a single circuit.
|
sweeps
|
Parameters to run with each circuit. The length of the
sweeps sequence should be the same as the circuits argument.
|
repetitions
|
Number of repetitions to run with each sweep.
|
max_moments
|
Maximum number of moments to allow.
|
max_repetitions
|
Maximum number of parameter sweep values allowed
when summed across all sweeps.
|
max_duration_ns
|
Maximum duration of the circuit, in nanoseconds.
|
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."],[],[]]