cirq.contrib.acquaintance.devices.AcquaintanceDevice

A device that contains only acquaintance and permutation gates.

Inherits From: Device

metadata Returns the associated Metadata with the device if applicable.

Methods

validate_circuit

View source

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

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

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.

gate_types (<class 'cirq.contrib.acquaintance.gates.AcquaintanceOpportunityGate'>, <class 'cirq.contrib.acquaintance.permutation.PermutationGate'>)