cirq_google.engine.engine_validator.validate_program
Validate that the Program message size is below the maximum size limit.
cirq_google.engine.engine_validator.validate_program(
circuits: Sequence[cirq.AbstractCircuit],
sweeps: Sequence[cirq.Sweepable],
repetitions: int,
serializer: cirq_google.serialization.Serializer
,
max_size: int = MAX_MESSAGE_SIZE
) -> None
Args |
circuits
|
A sequence of cirq.Circuit objects to validate. For
sweeps and runs, this will be a single circuit. For batches,
this will be a list of circuits.
|
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.
|
serializer
|
Serializer to use to serialize the circuits and sweeps.
|
max_size
|
proto size limit to check against.
|
Raises |
RuntimeError
|
if compiled proto is above the maximum size.
|
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."],[],[]]