Breaking Changes

2026.8.0

Precomputed switching delays

The switching delay of atomiq.components.optoelectronics.lightmodulator.RFLightModulator (AOM, EOM) and atomiq.components.electronics.misc.DelayedSwitch, the opening and closing time of atomiq.components.optoelectronics.lightmodulator.Shutter and the settle time of atomiq.components.lock.DetunableLock are converted to machine units on the host with artiq.coredevice.core.Core.seconds_to_mu(). Before, the kernel converted them at every call with delay(), which costs about 2.7 µs of CPU time each on a Kasli.

seconds_to_mu rounds down, while delay() rounds to the nearest machine unit. These delays can therefore be up to one machine unit shorter than before. For example, a switching delay of 1e-6 is now 999 mu instead of 1000 mu.

opening_time and closing_time of a Shutter are now kernel invariants. A kernel that assigns them does not compile anymore. Set them on the host before the kernel runs.

2026.7.0

Single kernel per run

Integer arguments are np.int64 in kernels. Before, they had the ARTIQ default integer type int32. Arithmetic and comparisons that mix an integer argument with an int32 value still compile. It fails to compile if the same variable, attribute or function parameter receives an int32 and an int64 value. This includes an attribute that the host initialises with a Python integer, which is int32, as in the example below. Integer literals in the kernel adapt to either type. Convert the argument with np.int32() where you need int32.

Before (Old Code):

def build(self):
    super().build()
    self.counter = 0

@kernel
def step(self, point):
    self.counter = point.n_pulses

After (New Code):

def build(self):
    super().build()
    self.counter = 0

@kernel
def step(self, point):
    self.counter = np.int32(point.n_pulses)

Arguments with a scannable default (a float argument that can be scanned) are floats in kernels and in submit_env, also if their values are integers. This holds for single values ("default": 10 gives 10.0) and for scanned values, for example an ExplicitScan of integers. Before, the integers were passed through. Kernel code that uses such a value as an integer, for example in range(), must convert it. To keep an integer, declare the argument with "type": "int". An integral step with precision 0 and a scale of 1 also works. "scannable": False alone does not: {"default": 10, "scannable": False} is 10.0.

An argument with an integral step and precision 0 is a non-scannable integer if its scale is 1, also without a scale key. This is the rule of ARTIQ's NumberValue: without scale, the scale is 1 if there is no unit, and otherwise the scale of the unit. Before, the scale key was required, and an argument such as {"default": 1, "step": 1, "precision": 0} was scannable.

Before (Old Code):

arguments = {"n_pulses": {"default": 10}}

After (New Code):

arguments = {"n_pulses": {"default": 10, "type": "int"}}

Scan points are atomiq point objects, not ARTIQ ScanPoint objects. All points of a run share one generated class with one attribute per experiment argument, step_counter, run_id and identifier. Code that relies on ScanPoint members other than the argument values, such as __dict__, must be adapted.

The attributes of arguments that are neither scanned nor mutable, including scannable arguments with a single value (NoScan), are kernel invariants. Assigning to one in a kernel, for example point.mode = "slow" in step, is a compile error (cannot assign to constant attribute 'mode' of class '_Point'). Kernels can assign the attributes of scanned arguments and step_counter. The framework sets identifier itself.

The values of non-scannable arguments are copied to the points at the end of AtomiqExperiment.prepare(). Before, the non_scannable_arguments dictionary was read when the run started. Changes to that dictionary after super().prepare() no longer reach the points.

atomiq.atomiq.KernelChunk only has the arguments that are constant for the whole run, the mutable arguments that are not scanned and run_id as attributes. Before, it also had every scanned argument that happened to be constant within the chunk. Now, reading a scanned argument as points.<name> in a kernel phase (prechunk, postchunk) is a compile error ("host object does not have an attribute"), also if its value is the same for all points of the chunk. Read it from a point instead. The same holds for per-point attributes that prechunk_host sets and that are equal across the chunk: they are no longer available as points.<name>. Chunk.get_kernel_chunk() is removed. The framework builds the KernelChunk itself, so drop calls to it in experiments. The points of the atomiq.atomiq.Chunk in the host phases are now reused: every chunk gets the same preallocated point objects, and the next chunk fetch overwrites them. Before, every chunk had new point objects. Copy the values you need instead of keeping the points. Edits that prechunk_host makes to the points now reach the kernel only for scanned values and step_counter, and only for that chunk. Before, an edit of any attribute reached the kernel. An edit of a mutable argument persists (see Changing mutable arguments in chunk phases). An edit of a constant argument or run_id in a host phase now raises RuntimeError. Assigning points.x on a host Chunk now sets the attribute on every point. Before, it set an attribute of the list object and the value was lost. See Accessing Scan Point Information.

Before (Old Code):

@kernel
def prechunk(self, points):
    # exposure_time is scanned, but constant within the chunk
    delay(points.exposure_time)

After (New Code):

@kernel
def prechunk(self, points):
    delay(points.to_list()[0].exposure_time)

A run uses one kernel for the whole scan. Before, every chunk was a kernel of its own. The chunk phases behave as follows now:

  • prechunk_host and postchunk_host run inside the chunk-fetch RPC, while the kernel waits. They must not call @kernel methods or access the core device (self.core). Before, they ran between two kernels, where this was possible. Move such code to prechunk or postchunk.

  • postchunk_host of a chunk runs when the next chunk is fetched, or when the scan is complete, not right after the chunk. It also runs before the run is paused or terminated. If an RTIO underflow leaves the kernel in the middle of a chunk, it runs for the partly processed chunk at the next fetch. Before, it was skipped in that case. As before, it starts only after the RTIO events that postchunk queued are played out.

  • The core device is not reset between chunks. Before, every chunk started with core.reset(). The kernel waits for all queued RTIO events before it is left for a pause or the end of the scan.

  • After a pause, the scan is resumed in a new kernel call without resetting the core device and without running prerun again. Before, every chunk kernel reset the core device, also after a pause. See Phases and Chunking.

  • An attribute that a host phase assigns, for example self.offset in postchunk_host, no longer reaches the kernel. The kernel uses the value from the start of the run for the whole scan. When the kernel is left, ARTIQ writes its value back to the host attribute, so the host also loses the assignment. Nothing raises. Before, the next chunk kernel used the new value. Make the value a mutable argument and assign it on the chunk, or fetch it with an RPC in a kernel phase.

Before (Old Code):

def build(self):
    super().build()
    self.offset = 0.0

def postchunk_host(self, points):
    self.offset = self.fit_offset(points)

@kernel
def step(self, point):
    delay(self.offset)

After (New Code), with a mutable argument:

arguments = {"offset": {"default": 0.0, "scannable": False, "mutable": True}}

def postchunk_host(self, points):
    points.offset = self.fit_offset(points)

@kernel
def step(self, point):
    delay(point.offset)

The mutable argument applies from the next chunk, is reported by submit_env and can also be changed through HEROS, see Changing mutable arguments in chunk phases.

After (New Code), with an RPC:

def build(self):
    super().build()
    self.offset = 0.0

def postchunk_host(self, points):
    self.offset = self.fit_offset(points)

def get_offset(self) -> float:
    return self.offset

@kernel
def prechunk(self, points):
    self.offset = self.get_offset()

@kernel
def step(self, point):
    delay(self.offset)

An RTIO underflow in a step resets the core device, runs prerun again and drops the rest of the chunk, as before. The scan then continues in a new kernel with the next chunk. An experiment can instead retry the step in the kernel after break_realtime() by setting MAX_RTIO_UNDERFLOW_RETRIES (default 0). A retry does not run prerun again, output events that the failed attempt queued are still played out, and RPCs of the failed attempt are not undone: a submit_env in step before the underflow runs again and gives a second record with the same step_counter and a new identifier. An underflow in prechunk or postchunk drops the rest of the chunk as before. The core firmware reports a sequence error only when the kernel is left. The core reset and prerun after a sequence error thus happen at the next exit of the kernel (pause or underflow), not after the chunk as before. At the end of the scan, atomiq only resets the core device and does not run prerun again. See RTIO Underflows for details.

atomiq.atomiq.AtomiqExperiment.chunker() takes source, a ParameterSpaceSource from get_parameter_space_source(), instead of mult_scan. It only yields the chunks and does not start a kernel. Adapt code that calls or overrides it.

Arguments can now be marked "mutable": True. This is a new feature, not a breaking change. See Mutable arguments, Point tiers and Updating mutable arguments of a running experiment.

Chunk phases can change mutable arguments, and the change persists for later chunks. A host phase assigns points.NAME = x on the Chunk. The kernel phases prechunk and postchunk assign it on the KernelChunk. See Changing mutable arguments in chunk phases.

def postchunk_host(self, points):
    if points.n_pulses > 10:
        points.n_pulses = 10

See Accessing Scan Point Information in the chunking documentation for more details.

2026.2.3 (minor)

Declaration of _shape_changing_arguments

This version optimized compile time via reducing the number of ephemeral subclasses. This introduces the necessary component attribute atomiq.components.primitives.Component._shape_changing_arguments which needs to include all __init__ arguments of a class that change its shape, i.e. change the its methods or attribute types. An example can be found in atomiq.components.lock.DetunableLock

If you have custom classes that have a similar mechanism, you need to adjust them accordingly. Otherwise this is not breaking.

2026.2.0

atomiq.components.lock frequency conventions

This version resolved the frequency setting inconsistencies in atomiq.components.lock.

All methods atomiq.components.lock.Lock.get_frequency(), set_frequency, ramp_frequency now refer to the light frequency exiting the laser (with harmonic factor applied).

The arguments reference_frequency, lock_offset and methods set_detuning(), ramp_detuning() refer now to the laser fundamental (where the lock acts).

Check your components if they reflect this consistent convention!

2026.1.7 (minor)

get_multiscanmanager signature change

atomiq.AtomiqExperiment.get_multiscanmanager() now returns a tuple consisting of the scan argument order (a list of the scanned argument names, from the inner to the outer loop) and the artiq.language.scan.MultiScanManager.

Before (Old Code):

mult_scan = self.get_multiscanmanager()

After (New Code):

scan_argument_order, mult_scan = self.get_multiscanmanager()

If you override or call this method in your experiments (Which you should not!), adapt your code accordingly.

2026.1.0

The chunking system has been updated with new atomiq.atomiq.Chunk and atomiq.atomiq.KernelChunk classes that change how scan points are accessed in kernel phases.

  • Host phases (prechunk_host, postchunk_host): No changes required. The points parameter is now a atomiq.atomiq.Chunk object that extends list and provides direct attribute access.

  • Kernel phases (prechunk, postchunk): The points parameter is now a atomiq.atomiq.KernelChunk object. To iterate over individual scan points, you must use points.to_list().

Before (Old Code):

@kernel
def prechunk(self, points):
    # Access first point's attributes, no guarantee that it is constant in chunk
    exposure = points[0].exposure_time

    # Iterate over all points
    for point in points:
        freq = point.frequency
        # ... process each point

After (New Code):

@kernel
def prechunk(self, points):
    # Access invariant attributes directly
    exposure = points.exposure_time

    # Iterate over all points using to_list()
    for point in points.to_list():
        freq = point.frequency
        # ... process each point

See Accessing Scan Point Information in the chunking documentation for more details.

0.5.0

  • ARTIQ version changed. The ATOMIQ branches now track the following ARTIQ versions:

    • old_stable: ARTIQ 8 (was ARTIQ 7)

    • stable: ARTIQ 9 (was ARTIQ 8)

    • latest (or beta): ARTIQ master branch.

    Updating from an older version will most likely require manual intervention. See also the ARTIQ upgrading guides for ARTIQ 9 and ARTIQ 8. We recommend updating to the stable branch. ARTIQ updates to the NAC-3 compiler on their master **branch, which will break stuff regularly.