Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, name='settings'):
super().__init__(name)
awg_gates = {'P1': (0, 0), 'P2': (0, 1)}
awg_markers = {'m4i_mk': (0, 4, 0)}
self.awg_map = {**awg_gates, **awg_markers}
for awg_gate in self.awg_map:
parameter_name = 'awg_to_{}'.format(awg_gate)
parameter_label = '{} (factor)'.format(parameter_name)
self.add_parameter(parameter_name, parameter_class=ManualParameter,
initial_value=1000, label=parameter_label, vals=Numbers(1, 1000))
def __init__(self, name='settings'):
super().__init__(name)
awg_gates = {'P1': (0, 0), 'P2': (0, 1)}
awg_markers = {'m4i_mk': (0, 4, 0)}
self.awg_map = {**awg_gates, **awg_markers}
for awg_gate in self.awg_map:
parameter_name = 'awg_to_{}'.format(awg_gate)
parameter_label = '{} (factor)'.format(parameter_name)
self.add_parameter(parameter_name, parameter_class=ManualParameter,
initial_value=1000, label=parameter_label, vals=Numbers(1, 1000))
def __init__(self, name, nx=80, **kwargs):
super().__init__(name, **kwargs)
self.nx = nx
self.add_parameter('p', parameter_class=qcodes.ManualParameter, initial_value=-20)
self.add_parameter('q', parameter_class=qcodes.ManualParameter, initial_value=30)
def __init__(self, station, verbose=1):
self.station = station
self.verbose = verbose
self.scan_parameters = {}
self.period_1d = qcodes.ManualParameter('period_1d', initial_value=1e-3)
def __init__(self, name, **kwargs):
super().__init__(name, **kwargs)
self.awg_map = {'C1': (0, 1), 'C2': (0, 2), 'C3': (0, 3), 'C4' : (0, 4),
'm4i_mk': (0, 4, 1)}
for gate in self.awg_map.keys():
p = 'awg_to_%s' % gate
self.add_parameter(p, parameter_class=ManualParameter,
initial_value=1000,
label='{} (factor)'.format(p),
vals=Numbers(1, 1000))
def __init__(self, name, nx=80, **kwargs):
super().__init__(name, **kwargs)
self.nx = nx
self.add_parameter('p', parameter_class=qcodes.ManualParameter, initial_value=-20)
self.add_parameter('q', parameter_class=qcodes.ManualParameter, initial_value=30)