Skip to content

Commit

Permalink
Check for instruments in config
Browse files Browse the repository at this point in the history
and that TDM is enabled
  • Loading branch information
Diego Ristè committed Feb 7, 2018
1 parent adba97d commit a65bb88
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions QGL/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# plotting options
plotBackground = '#EAEAF2'
gridColor = None
gridColor = []

# select pulse library (standard or all90)
pulse_primitives_lib = "standard"
Expand Down Expand Up @@ -96,6 +96,8 @@ def load_config(filename=None):
gridColor = cfg['config'].get('GridColor', None)
pulse_primitives_lib = cfg['config'].get('PulsePrimitivesLibrary', 'standard')
cnot_implementation = cfg['config'].get('cnot_implementation', 'CNOT_simple')
tdm_list = [k for (k, v) in cfg['instruments'].items() if v['type'] == 'TDM']

if 'instruments' in cfg:
tdm_list = [k for (k, v) in cfg['instruments'].items() if (v['type'] == 'TDM' and v['enabled'] == True)]

return meas_file

0 comments on commit a65bb88

Please sign in to comment.