Register
Quantum Registers
Register(support, spacing=1.0, device_specs=DEFAULT_DEVICE)
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:
|
spacing |
Value set as the distance between the two closest qubits.
TYPE:
|
Examples:
Source code in qadence/register.py
line_graph(n_qubits)
Create graph representing linear lattice.
PARAMETER | DESCRIPTION |
---|---|
n_qubits |
number of nodes in the graph
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Graph
|
graph instance |