Cirq
stable
Installing Cirq
Tutorial
Circuits
Gates
Simulation
Schedules and Devices
Development
API Reference
Devices and Qubits
Single Qubit Gates
Two Qubit Gates
Three Qubit Gates
Other Gate and Operation Classes
Circuits and Schedules
Trials and Simulations
Magic Method Protocols
Magic Method Protocol Types
Optimization
Utilities
Experiments
Google
cirq.google.AnnealSequenceSearchStrategy
cirq.google.GreedySequenceSearchStrategy
cirq.google.Bristlecone
cirq.google.ConvertToXmonGates
cirq.google.Engine
cirq.google.engine_from_environment
cirq.google.Foxtail
cirq.google.gate_to_proto_dict
cirq.google.is_native_xmon_op
cirq.google.JobConfig
cirq.google.line_on_device
cirq.google.LinePlacementStrategy
cirq.google.optimized_for_xmon
cirq.google.pack_results
cirq.google.schedule_from_proto_dicts
cirq.google.schedule_to_proto_dicts
cirq.google.unpack_results
cirq.google.xmon_op_from_proto_dict
cirq.google.XmonDevice
cirq.google.XmonDevice.at
cirq.google.XmonDevice.can_add_operation_into_moment
cirq.google.XmonDevice.col
cirq.google.XmonDevice.decompose_operation
cirq.google.XmonDevice.duration_of
cirq.google.XmonDevice.neighbors_of
cirq.google.XmonDevice.row
cirq.google.XmonDevice.validate_circuit
cirq.google.XmonDevice.validate_gate
cirq.google.XmonDevice.validate_moment
cirq.google.XmonDevice.validate_operation
cirq.google.XmonDevice.validate_schedule
cirq.google.XmonDevice.validate_scheduled_operation
cirq.google.XmonOptions
cirq.google.XmonSimulator
cirq.google.XmonStepResult
Testing
Work in Progress - Noisy Channels
Work in Progress - Stabilizers
Contrib
Cirq
Docs
»
API Reference
»
cirq.google.XmonDevice
»
cirq.google.XmonDevice.validate_moment
cirq.google.XmonDevice.validate_moment
¶
XmonDevice.
validate_moment
(
moment: cirq.circuits.moment.Moment
)
[source]
¶
Raises an exception if a moment is not valid.
Parameters:
moment
– The moment to validate.
Raises:
ValueError
– The moment isn’t valid for this device.