def run(self):> self.delay_duration_list = [0, 50000, 100000, 150000, 200000, 250000, 300000, 350000, 400000, 450000, 500000, 550000, 600000, 650000, 700000, 750000, 800000, 850000, 900000, 950000, 1000000] num_qubits = self.backend.configuration().num_qubits self.initial_layout_list = [] for i in range(num_qubits): qc_i = prepare_plusstateBench(i) il = [i] print("experiments: ", i) execute_bench(qc_i, backend=self.backend, simulator=self.simulator, initial_layout=il, delay_duration_list=self.delay_duration_list, nseed=self.nseed, ) self.initial_layout_list.append(il) print("### successfuly ran exp "+ str(i) +" ###")
def test_execute(): backend = get_IBM_backend("ibmq_rome") simulator = get_IBM_backend("ibmq_qasm_simulator") qc = QuantumCircuit(3, 3, name="qc_name_is") qc.x(0) qc.x(1) qc.x(2) qc.measure_all() job_sim, job_delay_op_list, job_delay_meas_list = execute_bench( qc, backend, simulator, initial_layout=[0, 1, 2])
" ################################") print(circ) # ## Send job # max(dt) = 1E6 qc = prepare_pulsestateBench("e6") delay_duration_e6 = [ 0, 50000, 100000, 150000, 200000, 250000, 300000, 350000, 400000, 450000, 500000, 550000, 600000, 650000, 700000, 750000, 800000, 850000, 900000, 950000, 1000000 ] execute_bench( qc, backend=backend, simulator=simulator, initial_layout=initial_layout, delay_duration_list=delay_duration_e6, nseed=nseed, ) # max(dt) = 1E5 qc = prepare_pulsestateBench("e5") delay_duration_e5 = [ 0, 5000, 10000, 15000, 20000, 25000, 30000, 35000, 40000, 45000, 50000, 55000, 60000, 65000, 70000, 75000, 80000, 85000, 90000, 95000, 100000 ] execute_bench( qc, backend=backend, simulator=simulator, initial_layout=initial_layout,