Register
Quantum Registers
Register(support)
A 2D register of qubits which includes their coordinates.
It is needed for e.g. analog computing.
The coordinates are ignored in backends that don't need them. The easiest
way to construct a register is via its classmethods like Register.triangular_lattice.
| PARAMETER | DESCRIPTION |
|---|---|
support |
A graph or number of qubits. Nodes can include a
TYPE:
|
Examples:
Source code in qadence/register.py
line_graph(n_qubits, spacing=1.0)
Create graph representing linear lattice.
| PARAMETER | DESCRIPTION |
|---|---|
n_qubits |
number of nodes in the graph
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Graph
|
graph instance |