Exemplo n.º 1
0
def load_experiment(sample_batch, sample_name):
    station = qc.Station.default
    # Set up folders, settings and logging for the experiment
    my_init(sample_batch + sample_name,
            station,
            pdf_folder=False,
            png_folder=False,
            analysis_folder=True,
            waveforms_folder=False,
            calib_config=False,
            annotate_image=False,
            mainfolder="D:/data/",
            display_pdf=False,
            display_individual_pdf=False,
            qubit_count=2)
    new_experiment(sample_batch, sample_name)
Exemplo n.º 2
0
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)

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

#%%
get_calibration_array('pi_pulse_sigma')

#%%
c_ssb = pb.make_spectroscopy_SSB_sequence(0,
                                          200e6,
                                          1e6,
                                          channels=[3, 1, 2, 4],
                                          readout_SSBfreqs=[10e6, 1e6],
                                          pulse_mod=True)

#%%
c_ssb.print_segment_lists()
mpl.rcParams['figure.subplot.bottom'] = 0.15
mpl.rcParams['font.size'] = 10


if __name__ == '__main__':
    # Close existing connections if present
    if qc.Station.default:
        close_station(qc.Station.default)

    # initialise station
    STATION = qc.Station()

    # Set up folders, settings and logging for the experiment
    my_init("MT_LEc03_SE_sw", STATION,
            pdf_folder=True, png_folder=True, analysis_folder=True,
            waveforms_folder=True, calib_config=True,
            annotate_image=False, mainfolder=None, display_pdf=False,
            display_individual_pdf=False, qubit_count=1,
            plot_x_position=0.66)

    # Load instument config files, attempts to load the experiment specific
    # file, if none found then the default from the scripts_folder
    # specified in qc.config is used
    instr_config = get_config('instr')
    # make a locel version of the calibration config from the default and
    # set it up for use.
    make_local_config_file('calib')
    calib_config = get_config('calib')

    # Initialise intruments and add them to the station
    qdac = QDAC_ext('QDAC', 'ASRL4::INSTR')
    STATION.add_component(qdac)