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.
|