Skip to content

Commit

Permalink
Added TTS Functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasverrill committed Feb 4, 2024
1 parent 29fddf1 commit 4deefb7
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion IronOut_Error/final_code.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,23 @@
"id": "b22302f7-ca67-4688-829f-03340b2ee335",
"metadata": {},
"outputs": [],
"source": []
"source": [
"#determines the times to solution (TTS) for the optimized quantum solver process on simulation for lattices of size 3-7\n",
"from time import process_time\n",
"rng = np.random.default_rng(1234)\n",
"for md in max_det:\n",
" f = md / d_max\n",
" delta_MHz=[-md,d_1 * f,d_2 * f,d_3 * f,md]\n",
" Delta = piecewise_linear(durations_delta,[x*2*np.pi for x in delta_MHz])\n",
" p_mi = []\n",
" for i in range(3, 8):\n",
" atom_pos=Square(i, lattice_spacing=4).apply_defect_density(0.3, rng=rng).remove_vacant_sites()\n",
" start = process_time()\n",
" program = rydberg_h(atom_pos, detuning= Delta, amplitude=Omega, phase=None)\n",
" bloqade_program = program.bloqade.python()\n",
" output = bloqade_program.run(shots=sim_shots, interaction_picture=True)\n",
" print(process_time() - start)"
]
}
],
"metadata": {
Expand Down

0 comments on commit 4deefb7

Please sign in to comment.