cirq.NeutralAtomDevice

class cirq.NeutralAtomDevice(measurement_duration: cirq.DURATION_LIKE, gate_duration: cirq.DURATION_LIKE, control_radius: float, max_parallel_z: int, max_parallel_xy: int, max_parallel_c: int, qubits: Iterable[cirq.devices.grid_qubit.GridQubit])[source]

A device with qubits placed on a grid.

__init__(measurement_duration: cirq.DURATION_LIKE, gate_duration: cirq.DURATION_LIKE, control_radius: float, max_parallel_z: int, max_parallel_xy: int, max_parallel_c: int, qubits: Iterable[cirq.devices.grid_qubit.GridQubit]) → None[source]

Initializes the description of the AQuA device.

Parameters
  • measurement_duration – the maximum duration of a measurement.

  • gate_duration – the maximum duration of a gate

  • control_radius – the maximum distance between qubits for a controlled gate. Distance is measured in units of the indices passed into the GridQubit constructor.

  • max_parallel_z – The maximum number of qubits that can be acted on in parallel by a Z gate

  • max_parallel_xy – The maximum number of qubits that can be acted on in parallel by a local XY gate

  • max_parallel_c – the maximum number of qubits that can be acted on in parallel by a controlled gate. Must be less than or equal to the lesser of max_parallel_z and max_parallel_xy

  • qubits – Qubits on the device, identified by their x, y location. Must be of type GridQubit

Raises

ValueError – if the wrong qubit type is provided or if invalid parallel parameters are provided