sequencers as channels in the main instrument
working with the QRM pulsar driver, having the Qcodes parameters named as pulsar.sequencer#_param
is inconvenient for type completion and looping over all sequencers.
Instead, it might be more convenient to implement every sequencer as a channel that is added as a submodule to the main driver.
Then, all parameters can be accessed via pulsar.sequencer0.param
and looped over as (as an example):
for seq in pulsar.sequencers:
seq.param(True)
See the Qcodes documentation: https://qcodes.github.io/Qcodes/api/instrument/channel.html?highlight=channel#module-qcodes.instrument.channel