pasqal-io / Pulser

Library for pulse-level/analog control of neutral atom devices. Emulator with QuTiP.
Apache License 2.0
159 stars 57 forks source link

FIX: Deserialization of sized variable items #653

Closed HGSilveri closed 4 months ago

HGSilveri commented 4 months ago

We were only supporting the deserialization of unsized variable items (e.g. single values obtained through var[0]), although we also supported sized variable items through slices (e.g. var[1:5:2]).

The abstract representation allowed for serialization of these variable items but then deserialization failed. The easiest way to fix this was actually to add support for indexing variables with a list of indices (e.g. var[[0, 1, 3]]), so this hotfix actually introduces a small enhancement.