cirq_google.engine.engine_validator.validate_program

Validate that the Program message size is below the maximum size limit.

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.

RuntimeError if compiled proto is above the maximum size.