cirq.IonDevice.validate_operation

IonDevice.validate_operation(operation)[source]

Raises an exception if an operation is not valid.

Parameters

operation – The operation to validate.

Raises

ValueError – The operation isn’t valid for this device.