We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff55a49 commit 94cd9cfCopy full SHA for 94cd9cf
pulse_lib/base_pulse.py
@@ -364,7 +364,10 @@ def load_hardware(self, hardware):
364
hardware.awg2dac_ratios.add(list(self.awg_channels.keys()))
365
366
for channel, attenuation in hardware.awg2dac_ratios.items():
367
- self.awg_channels[channel].attenuation = attenuation
+ if channel not in self.awg_channels:
368
+ logging.info(f'Channel {channel} defined in hardware, but not in pulselib; skipping channel')
369
+ continue
370
+ self.awg_channels[channel].attenuation = attenuation
371
372
else:
373
for virtual_gate_set in hardware.virtual_gates:
0 commit comments