mindquantum.device.GridQubits
- class mindquantum.device.GridQubits(n_row: int, n_col: int)[source]
Grid qubit topology.
- Parameters
Examples
>>> from mindquantum.device import GridQubits >>> topology = GridQubits(2, 3) >>> topology.n_row() 2
Grid qubit topology.
Examples
>>> from mindquantum.device import GridQubits
>>> topology = GridQubits(2, 3)
>>> topology.n_row()
2