LineQPU#
- class iqm.qaoa.transpiler.quantum_hardware.LineQPU(length)[source]#
Bases:
QPU
A 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_graph
and the correspondinghardware_layout
which are then passed toQPU
class 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).