qat.devices.LineDevice

class qat.devices.LineDevice(length)

A device with linear nearest neighbor connectivity.

from qat.devices import LineDevice

device = LineDevice(7)
print(device.description)
print(device)
A LNN device with 7 qubits
0 -- 1 -- 2 -- 3 -- 4 -- 5 -- 6
Parameters

length (int) – the number of qubits of the device