def measure_ssro():
    AncT_CB.prepare_for_timedomain()
    MC.soft_avg(1)
    reload(qh)
    CBox.log_length(8000)
    off_on = sq_qasm.off_on(qubit_name)
    s = qh.QASM_Sweep(off_on.name, CBox, op_dict)
    d = qh.CBox_integration_logging_det_CC(CBox, )
    MC.set_sweep_function(s)
    MC.set_sweep_points(np.arange(8000))
    MC.set_detector_function(d)
    dat = MC.run('off_on')
    ma.SSRO_Analysis(close_fig=False)
Exemplo n.º 2
0
    def test_qasm_seq_OffOn(self):
        for q_name in ['q0', 'q1']:
            qasm_file = sqqs.off_on(q_name)
            qasm_fn = qasm_file.name
            qumis_fn = join(self.test_file_dir,
                            "off_on_{}.qumis".format(q_name))
            compiler = qcx.QASM_QuMIS_Compiler(self.config_fn,
                                               verbosity_level=0)
            compiler.compile(qasm_fn, qumis_fn)
            asm = Assembler(qumis_fn)
            asm.convert_to_instructions()

            self.assertEqual(compiler.qumis_instructions[2], 'Exp_Start: ')
            self.assertEqual(compiler.qumis_instructions[-1],
                             self.jump_to_start)
Exemplo n.º 3
0
 def test_qasm_seq_OffOn(self):
     qasm_file = sq_qasm.off_on(self.qubit_name)
     asm_file = qta.qasm_to_asm(qasm_file.name, self.operation_dict)
     asm = Assembler.Assembler(asm_file.name)
     instructions = asm.convert_to_instructions()
 def test_qasm_seq_OffOn(self):
     qasm_file = sq_qasm.off_on(self.qubit_name)
     asm_file = qta.qasm_to_asm(qasm_file.name, self.operation_dict)
     asm = Assembler.Assembler(asm_file.name)
     instructions = asm.convert_to_instructions()