<jupyter_start><jupyter_text>Testing of QuTiP QOC on Qiskit using IBM backend <NAME> (<EMAIL>)  Imports<jupyter_code>from src.QOCTester import QOCTester
from qiskit import IBMQ
from qiskit.tools.monitor import job_monitor
import numpy as np

IBMQ.load_account()

provider = IBMQ.get_provider(hub='ibm-q-internal', group='deployed', project='default')
backend = provider.get_backend('ibmq_valencia')
target_name = 'XGate'
subsystem_list = [0]

config = backend.configuration()

tester = QOCTester(config, subsystem_list, p_type='LIN', two_level=True)
# tester.make_two_level()
tester.init_unitaries(target_name)

n_ts_list=np.arange(64,320,64)
tester.time_init(n_ts_list=n_ts_list)
optim = tester.create_pulse_optimizer()
results = tester.tester_run_optimizer(optim)
tester.plot_all_results(results)
programs = tester.gen_qiskit_progs(results, backend)
jobs = tester.run_qiskit_programs(programs,backend)
job_monitor(jobs[-1])
acc = tester.get_acc(jobs)
acc
tester.write_acc(acc, 'results.csv')
tester.H_c
from src.three_restructure import generate_schedule
from qiskit.pulse import DriveChannel
sched = generate_schedule(results[0].final_amps, backend, draw_progs=True)
sched.draw(plot_range=[0,200], channels=[DriveChannel(0)])<jupyter_output>/Users/benrosand/anaconda3/envs/qoc/lib/python3.8/site-packages/ipykernel/ipkernel.py:287: DeprecationWarning: `should_run_async` will not call `transform_cell` automatically in the future. Please pass the result to `transformed_cell` argument and any exception that happen during thetransform in `preprocessing_exc_tuple` in IPython 7.17 and above.
  and should_run_async(code)
{'fraction_non_alphanumeric': 0.10542540073982737, 'fraction_numerical': 0.014796547472256474, 'mean_word_length': 8.169491525423728, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '597318', 'license': 'Apache-2.0', 'n_tokens_mistral': 591, 'n_tokens_neox': 560, 'n_words': 113, 'path': 'oct-qiskit-pulse/notebooks/final_testing_demo.ipynb', 'repo_name': 'brosand/qiskit-terra', 'size': '1636'}