LineQPU#
- class iqm.qaoa.transpiler.quantum_hardware.LineQPU(length)[source]#
Bases:
QPUA linear QPU (qubits on a line).
Nothing fancy here, just a special case of a qubit hardware connectivity graph, which is a line. Given a
length, creates a pathhardware_graphand the correspondinghardware_layoutwhich are then passed toQPUclass initialization.- Parameters:
length (int) – The length of the QPU (as number of qubits).
Attributes
Methods
Embeds a chain in the line QPU (which is just a line).