from qdev_wrappers.file_setup import CURRENT_EXPERIMENT, close_station, my_init
from qdev_wrappers.configreader import Config
import qcodes as qc
from qdev_wrappers import *
from qdev_wrappers.transmon import *


# This is an example script for use of the sequencing and pulse building
# secion of the qdev_wrappers which uses the calibration.config to build
# sequences to be run on the awg based on these 'calibration' values

#%%
station = qc.Station()
my_init('floquet_test3', station, qubit_count=4, calib_config=True)

#%%
gate_dict = pb.make_pulse_dict(qubit_indices=[0, 1, 2, 3],
                                SSBfreqs=[1e6, 1e6, 1e6, 1e6], gaussian=True,
                                drag=False, z_gates=False, SR=1e9)

#%%
set_current_qubit(1)
set_calibration_val('pi_pulse_sigma', 30e-9)
get_calibration_array('pi_pulse_sigma')

#%%
c = pb.make_sequence_from_gate_lists([['X', 'Y/2'], ['Y']],
                                    SSBfreq=50e6,
                                    channels=[1, 2, 3, 4])
c.print_segment_lists()
p = c.plot(elemnum=0)
Example #2
0
    curval = lockin.sine_outdc()
    dv = 0.01
    nvals = np.abs((val - curval)) / dv
    #print(nvals)
    vals = np.linspace(curval, val, int(nvals))
    #print(vals)
    for nval in vals:
        lockin.sine_outdc(nval)
        time.sleep(0.02)


try:
    SR1 = SR865('SR1', 'USB0::0xB506::0x2000::003225::INSTR')
except:
    pass
station = qc.Station(SR1)  #, Keith_1, Keith_2)
lockin = SR1
ampl = lockin.amplitude()
delay = 5 * lockin.time_constant()
fs = np.linspace(100, 500e3, 21)

names = {
    1: (750, 'um'),
    2: (300, 'um'),
    3: (200, 'um'),
    4: (150, 'um', 2),
    5: (100, 'um', 1),
    6: (50, 'um', 1),
    7: ('open', '')
}
channel = 6
Example #3
0
        'P4': (0, 8),
        'B4': (0, 9),
        'P5': (0, 10),
        'B5': (0, 11),
        'P6': (0, 12),
        'B6': (0, 13),
        'S6': (
            0,
            14,
        ),
        'SD1_P': (1, 1),
        'SD2_P': (1, 2),
        'SD1_B1': (1, 3),
        'SD2_B1': (1, 4),
        'SD1_B2': (1, 5),
        'SD2_B2': (1, 6),
    }

    hw.boundaries = {'B0': (0, 2000), 'B1': (0, 2500)}
    hw.virtual_gates.add('test', [
        'B0', 'P1', 'B1', 'P2', 'B2', 'P3', 'B3', 'P4', 'B4', 'P5', 'B5', 'P6',
        'B6', 'S6', 'SD1_P', 'SD2_P', 'COMP1'
    ])
    hw.awg2dac_ratios.add(hw.virtual_gates.test.gates)

    my_gates = gates("gates", hw, [my_dac_1, my_dac_2, my_dac_3, my_dac_4])
    station = qc.Station(my_gates)
    ui = param_viewer()
    from core_tools.GUI.virt_gate_matrix_qml.gui_controller import virt_gate_matrix_GUI
    # virt_gate_matrix_GUI()
Example #4
0
awg_channel_los = {
    'lo1_0': ('AWG1', 1, amp1, f1, True),
    'lo1_1': ('AWG1', 1, amp2, f2, True),
    'lo3_0': ('AWG2', 3, amp1, f1, True),
    'lo3_1': ('AWG2', 3, amp2, f2, True),
}

# lo-key, DAQ channel, hw input channel, intermediate frequency, IF band (+/-1), phase
dig_channel_los = {
    ('lo1_0', 1, 1, IF, +1, 0.0),
    ('lo1_1', 2, 1, IF, +1, 0.0),
    ('lo3_0', 3, 3, IF, +1, 0.0),
    ('lo3_1', 4, 3, IF, +1, 0.0),
}

station = qcodes.Station()

awgs = []
for i, slot in enumerate(awg_slots):
    awg = M3202A_fpga(f"AWG{i+1}", 1, slot)
    awgs.append(awg)
    awg.set_digital_filter_mode(0)
    station.add_component(awg)

dig = SD_DIG("dig", 1, 5)
station.add_component(dig)

load_iq_image(dig.SD_AIN)
print_fpga_info(dig.SD_AIN)
dig.set_acquisition_mode(dig_mode)
Example #5
0
def station(dac, lockin, field_x):
    _station = qc.Station()
    _station.add_component(dac)
    _station.add_component(lockin)
    _station.add_component(field_x)
    return _station
Example #6
0
        'keysight_dmm_2', 'TCPIP0::192.168.15.115::inst0::INSTR')
    keysightdmm_3 = Keysight_34465A_T10(
        'keysight_dmm_3', 'TCPIP0::192.168.15.117::inst0::INSTR')
    keithley_1 = keith.Keithley_2600('keithley_1',
                                     'TCPIP0::192.168.15.114::inst0::INSTR',
                                     "a")
    keithley_2 = keith.Keithley_2600('keithley_2',
                                     'TCPIP0::192.168.15.116::inst0::INSTR',
                                     "a")

    print('Querying all instrument parameters for metadata.'
          'This may take a while...')

    start = time.time()
    STATION = qc.Station(qdac, lockin, zi, keysightgen_left, keysightgen_2,
                         keysightdmm_1, keysightdmm_2, keysightdmm_3,
                         keithley_1, keithley_2)

    end = time.time()
    print("Querying took {} s".format(end - start))

    # Try to close all instruments when exiting
    atexit.register(close_station, STATION)

    # Initialisation of the experiment
    qc.init("./MajoQubit",
            "DVZ_MCQ002A1",
            STATION,
            annotate_image=False,
            display_pdf=False,
            display_individual_pdf=False)