We're celebrating World Quantum Day 2022! Join us

cirq_google.engine.engine_validator.validate_gate_set

Validate that the 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.
gate_set 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.