cirq_google.engine.engine_validator.create_program_validator
Creates a Callable program validator with a set message size.
cirq_google.engine.engine_validator.create_program_validator(
max_size: int = MAX_MESSAGE_SIZE
) -> cirq_google.engine.engine_validator.PROGRAM_VALIDATOR_TYPE
This validator can be used for a validator in cg.ValidatingSampler
and can also be useful in generating 'engine emulators' by using
cg.SimulatedLocalProcessor
with this callable as a program_validator.
Args:
max_size: proto size limit to check against.
Returns: Callable to use in validation with the max_size already set.
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."],[],[]]