The digital path (cosmiq.digital)#

Gate-based circuits, the kind you write in Qiskit, run on a neutral-atom device’s atoms. This page explains which gates the device has, how long they take and what noise they add. cosmiq simulates the circuits on your CPU, with or without that noise.

You write the circuits in Qiskit and run them through Qiskit on cosmiq:

from qiskit import QuantumCircuit, transpile

import cosmiq as cq
from cosmiq.qiskit import SamplerV2, target

reg = cq.Register.chain(2, 5.0)  # two atoms 5 µm apart; qubit q is atom q
qc = QuantumCircuit(2)
qc.h(0)
qc.cx(0, 1)
qc.measure_all()
qc_t = transpile(qc, target=target("cosmiq-ref-1", reg))  # into the device's native gates
sampler = SamplerV2(device="cosmiq-ref-1", register=reg, noise=True, seed=7)  # with its noise
counts = sampler.run([qc_t], shots=1000).result()[0].data.meas.get_counts()

The digital profile#

Each device’s native gates, their timing and its noise are in its digital profile, which is read-only. The reference device’s:

import dataclasses

import cosmiq as cq

ref = cq.digital.profile("cosmiq-ref-1")
print(ref.device, ref.profile_version)
for field in dataclasses.fields(ref):
    value = getattr(ref, field.name)
    if isinstance(value, float):
        print(f"{field.name:18s} {value:g}")
cosmiq-ref-1 1.0.0
cz_range_um        6
spectator_range_um 8
rabi_global        6.28319
rabi_local         3.14159
rz_rate            6.28319
t_cz               0.25
t_readout          500
depol_1q_global    0.0001
depol_1q_local     0.001
depol_cz           0.005
spectator_z        0.001
idle_dephasing     0.001
loss_sequence      0.005
spam_preparation   0.002
spam_false_01      0.005
spam_false_10      0.01

Field

Meaning

cz_range_um

a CZ needs its two atoms at most this far apart (µm)

spectator_range_um

a CZ also disturbs the other atoms within this distance (µm)

rabi_global, rabi_local

how fast an r gate turns: as one pulse on every atom, or on one atom (rad/µs)

rz_rate

how fast an rz gate turns (rad/µs)

t_cz, t_readout

how long a CZ takes, and the final readout (µs)

depol_1q_global, depol_1q_local

the chance of a random error on a qubit from a global r, and from a local r or rz

depol_cz

the chance of a random two-qubit error from a CZ

spectator_z

the chance that a CZ flips the phase of each nearby atom

idle_dephasing

how fast an idle qubit loses its phase (1/T2, per µs)

loss_sequence

the chance that an atom is lost in a shot

spam_preparation, spam_false_01, spam_false_10

the chance that an atom starts in 1; that a 0 is read as 1; that a 1 is read as 0

ref.sources says where each number comes from. The numbers are design choices and model no vendor’s machine. cosmiq-ref-1-ideal has the same gates and timing with no noise. Other devices have no digital profile, and are refused (DIGITAL_DEVICE).

Gates and timing#

  • Native gates: cz between two atoms within cz_range_um; r(θ, φ) \(= \exp\!\left(-\frac{i\theta}{2}(\cos\varphi\, X + \sin\varphi\, Y)\right)\), on every atom at once or on one; and rz(λ) \(= \mathrm{diag}(e^{-i\lambda/2}, e^{i\lambda/2})\), on one atom. Each qubit is measured once, at the end. Qubit \(q\) of a circuit is atom \(q\) of the register.

  • Layers: each gate goes in the earliest layer it can, after the last gate on any of its qubits. A barrier holds its qubits back until all of them are free.

  • Global or local: a layer of r gates with the same angles on every qubit of the circuit plays as one global pulse, with the global rate and noise; any other r is local. Put a barrier before a pulse you mean as global, so its gates share a layer.

  • Durations: a gate takes its angle, reduced to \([-\pi, \pi]\), divided by its rate; a CZ takes t_cz. A layer lasts as long as its longest gate, and the other qubits idle meanwhile. Durations matter only for how much the idle qubits dephase.

Noise#

noise=True adds the profile’s noise, drawn at random for each shot; the same seed gives the same results.

  • Every gate can leave a random Pauli error on its qubits.

  • Every CZ can also flip the phase of the nearby atoms.

  • Qubits lose their phase while they idle.

  • Before the circuit, an atom can start in 1, or be lost. A lost atom takes no part in any gate and reads as 1.

  • At readout, a 0 can be read as 1, and a 1 as 0.

The estimator averages exact expectation values over many noise draws, so readout errors don’t enter it. The noise model in full gives each channel exactly.

Sizes, memory and the simulator#

  • Up to 16 qubits. 17 or more are refused (DIGITAL_SIZE).

  • The simulator is a state vector in complex128, on the CPU. Every parameter point of a circuit runs from one compile.

  • max_memory= (2 GiB by default) is the memory the simulator plans its batches for, an estimate rather than a hard limit.

What is refused, and why#

Code

When

DIGITAL_SIZE

17 or more qubits or atoms

DIGITAL_MIDCIRCUIT

a gate on a measured qubit, a second measurement of a qubit (readout is destructive), a reset, or control flow

DIGITAL_GATE

an instruction other than cz, r, rz, measure and barrier (a delay included)

DIGITAL_RANGE

a CZ between atoms beyond cz_range_um; a qubit outside the circuit or register; an operation naming one atom twice. The message says which

DIGITAL_PARAM_EXPR

an angle that isn’t a real affine function \(\sum a_k \theta_k + b\) of the parameters

DIGITAL_DEVICE

a device with no digital profile, such as cosmiq-ref-1-future

A classical bit written by two measurements keeps the last one, as Qiskit’s StatevectorSampler does.

What it doesn’t do#

  • No atom moves, so which atoms can share a CZ is fixed by the register.

  • No zones and no pulse-level CZ.

  • Measurement at the end only.

  • No gradients through the primitives.

  • No error mitigation.

  • No shot noise in the estimator.

  • No GPU: the simulator runs on the CPU.

  • The register is checked only for the CZ range, not against the device’s analog spacing and window.

Tested sizes and measurements are on Claims and limits, and the tests behind this page on the digital path’s evidence.