Ejemplo n.º 1
0
    def test_qasm_seq_MotzoiXY(self):
        for q_name in ['q0', 'q1']:
            qasm_file = sqqs.two_elt_MotzoiXY(q_name)
            qasm_fn = qasm_file.name
            qumis_fn = join(self.test_file_dir,
                            "motzoi_{}.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)
Ejemplo n.º 2
0
 def test_qasm_two_elt_MotzoiXY(self):
     qasm_file = sq_qasm.two_elt_MotzoiXY(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()
Ejemplo n.º 3
0
def prepare_motzoi_seq_CC(qubit_name, op_dict):
    motzoi_elt = sqs.two_elt_MotzoiXY(qubit_name)
    single_pulse_asm = qta.qasm_to_asm(motzoi_elt.name, op_dict)
    asm_file = single_pulse_asm
    CBox.load_instructions(asm_file.name)
 def test_qasm_two_elt_MotzoiXY(self):
     qasm_file = sq_qasm.two_elt_MotzoiXY(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()