def test_qasm_seq_echo(self): qasm_file = sq_qasm.echo(self.qubit_name, self.times) asm_file = qta.qasm_to_asm(qasm_file.name, self.operation_dict) asm = Assembler.Assembler(asm_file.name) instructions = asm.convert_to_instructions() qasm_file = sq_qasm.echo(self.qubit_name, self.times) asm_file = qta.qasm_to_asm(qasm_file.name, self.operation_dict) asm = Assembler.Assembler(asm_file.name) instructions = asm.convert_to_instructions() qasm_file = sq_qasm.echo(self.qubit_name, self.times, artificial_detuning=4 / self.times[-4]) asm_file = qta.qasm_to_asm(qasm_file.name, self.operation_dict) asm = Assembler.Assembler(asm_file.name) instructions = asm.convert_to_instructions() qasm_file = sq_qasm.echo(self.qubit_name, self.times, artificial_detuning=None) asm_file = qta.qasm_to_asm(qasm_file.name, self.operation_dict) asm = Assembler.Assembler(asm_file.name) instructions = asm.convert_to_instructions() qasm_file = sq_qasm.echo(self.qubit_name, self.times, cal_points=False) 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_echo(self): qasm_file = sq_qasm.echo(self.qubit_name, self.times) asm_file = qta.qasm_to_asm(qasm_file.name, self.operation_dict) asm = Assembler.Assembler(asm_file.name) instructions = asm.convert_to_instructions() qasm_file = sq_qasm.echo(self.qubit_name, self.times) asm_file = qta.qasm_to_asm(qasm_file.name, self.operation_dict) asm = Assembler.Assembler(asm_file.name) instructions = asm.convert_to_instructions() qasm_file = sq_qasm.echo(self.qubit_name, self.times, artificial_detuning=4/self.times[-4]) asm_file = qta.qasm_to_asm(qasm_file.name, self.operation_dict) asm = Assembler.Assembler(asm_file.name) instructions = asm.convert_to_instructions() qasm_file = sq_qasm.echo(self.qubit_name, self.times, artificial_detuning=None) asm_file = qta.qasm_to_asm(qasm_file.name, self.operation_dict) asm = Assembler.Assembler(asm_file.name) instructions = asm.convert_to_instructions() qasm_file = sq_qasm.echo(self.qubit_name, self.times, cal_points=False) asm_file = qta.qasm_to_asm(qasm_file.name, self.operation_dict) asm = Assembler.Assembler(asm_file.name) instructions = asm.convert_to_instructions()
def measure_echo(): AncT_CB.prepare_for_timedomain() MC.soft_avg(5) times = np.arange(50e-9, 80e-6, 3e-6) echo_seq = sq_qasm.echo(qubit_name, times=times, artificial_detuning=None) s = qh.QASM_Sweep(echo_seq.name, CBox, op_dict) d = qh.CBox_integrated_average_detector_CC(CBox, nr_averages=128) MC.set_sweep_function(s) MC.set_sweep_points(times) MC.set_detector_function(d) MC.run('Echo') ma.Echo_analysis(close_fig=True)
def test_qasm_seq_echo(self): for q_name in ['q0', 'q1']: qasm_file = sqqs.echo(q_name, times=self.times) qasm_fn = qasm_file.name qumis_fn = join(self.test_file_dir, "echo_{}.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)