qat.devices.SquareGridDevice

class qat.devices.SquareGridDevice(dim)

A device with a square grid connectivity.

from qat.devices import SquareGridDevice

device = SquareGridDevice(3)
print(device.description)
print(device)
A device with a 3x3 grid connectivity
0 -- 1 -- 2
|    |    |    
|    |    |    
3 -- 4 -- 5
|    |    |    
|    |    |    
6 -- 7 -- 8
Parameters

dim (int) – the dimension of the square