Testing device to be used for testing qubit connectivity in routing procedures.
Inherits From: Device
cirq.testing.RoutingTestingDevice(
nx_graph: nx.Graph
) -> None
Attributes |
metadata
|
Returns the associated Metadata with the device if applicable.
|
Methods
validate_circuit
View source
validate_circuit(
circuit: 'cirq.AbstractCircuit'
) -> None
Raises an exception if a circuit is not valid.
Args |
circuit
|
The circuit to validate.
|
Raises |
ValueError
|
The circuit isn't valid for this device.
|
validate_moment
View source
validate_moment(
moment: 'cirq.Moment'
) -> None
Raises an exception if a moment is not valid.
Args |
moment
|
The moment to validate.
|
Raises |
ValueError
|
The moment isn't valid for this device.
|
validate_operation
View source
validate_operation(
operation: 'cirq.Operation'
) -> None
Raises an exception if an operation is not valid.
Args |
operation
|
The operation to validate.
|
Raises |
ValueError
|
The operation isn't valid for this device.
|