Exemplo n.º 1
0
                  double_points=True,
                  platf_cfg=cfg_openql_platform_fn)
    print(p.filename)

if sel == 1:  # Ramsey
    # based on CCL_Transmon.py::measure_ramsey()
    # funny default is because there is no real time sideband
    # modulation
    log.debug('compiling Ramsey')
    T2_star = 20e-6
    cfg_cycle_time = 20e-9
    stepsize = (T2_star * 4 / 61) // (abs(cfg_cycle_time)) \
               * abs(cfg_cycle_time)
    times = np.arange(0, T2_star * 4, stepsize)
    p = sqo.Ramsey(times,
                   qubit_idx=qubit_idx,
                   platf_cfg=cfg_openql_platform_fn)
    print(p.filename)

if sel == 2:  # Rabi
    # based on CCL_Transmon.py::measure_rabi_channel_amp()
    log.debug('compiling Rabi')
    p = sqo.off_on(qubit_idx=qubit_idx,
                   pulse_comb='on',
                   initialize=False,
                   platf_cfg=cfg_openql_platform_fn)
    print(p.filename)

if 1:
    log.debug('connecting to CC')
    cc = QuTechCC('cc', IPTransport(ip))
 def test_Ramsey(self):
     # Only test if it compiles
     p = sqo.Ramsey(times=np.arange(0, 1e-6, 20e-9),
                    qubit_idx=0, platf_cfg=self.config_fn)
     self.assertEqual(p.name, 'Ramsey')
Exemplo n.º 3
0
 def test_Ramsey(self):
     # Only test if it compiles
     sqo.Ramsey(times=np.arange(0, 1e-6, 20e-9),
                qubit_idx=0, platf_cfg=config_fn)