Skip to content

Commit

Permalink
Update 06_qubit_demos.ipynb
Browse files Browse the repository at this point in the history
Fixed a bug in the ToF measurement, plots the I and Q correctly.
  • Loading branch information
ankur92 committed Nov 12, 2021
1 parent 842155f commit 407850a
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions qick_demos/06_qubit_demos.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,7 @@
"end_time": "2021-09-30T07:30:24.080777Z",
"start_time": "2021-09-30T07:30:23.598393Z"
},
"code_folding": [
8,
47,
84,
87,
94,
103,
188,
205
]
"code_folding": []
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -309,14 +300,14 @@
"\n",
"config={**hw_cfg,**readout_cfg,**qubit_cfg,**expt_config}\n",
"prog =LoopbackProgram(config)\n",
"di, dq = prog.acquire_decimated(soc, load_pulses=True, progress=True, debug=False)\n",
"adc1, adc2 = prog.acquire_decimated(soc, load_pulses=True, progress=True, debug=False)\n",
"\n",
"# Plot results.\n",
"subplot(111, title=f\"Averages = {config['soft_avgs']}\", xlabel=\"Clock ticks\", ylabel=\"Transmission (adc levels)\")\n",
"plot(di[0], label=\"I value; ADC 0\")\n",
"plot(dq[0], label=\"Q value; ADC 0\")\n",
"plot(di[1], label=\"I value; ADC 1\")\n",
"plot(dq[1], label=\"Q value; ADC 1\")\n",
"plot(adc1[0], label=\"I value; ADC 0\")\n",
"plot(adc1[1], label=\"Q value; ADC 0\")\n",
"plot(adc2[0], label=\"I value; ADC 1\")\n",
"plot(adc2[1], label=\"Q value; ADC 1\")\n",
"legend()\n",
"axvline(readout_cfg[\"adc_trig_offset\"])"
]
Expand Down Expand Up @@ -1300,7 +1291,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.9"
},
"toc": {
"base_numbering": 1,
Expand Down

0 comments on commit 407850a

Please sign in to comment.