We're celebrating World Quantum Day 2022! Join us

cirq.devices.noise_model.validate_all_measurements

Ensures that the moment is homogenous and returns whether all ops are measurement gates.

moment the moment to be checked

bool True if all operations are measurements, False if none of them are

ValueError If a moment is a mixture of measurement and non-measurement gates.