From 43cf951fb8f11736c96b2a27e693bfb5b614b52a Mon Sep 17 00:00:00 2001 From: Ryan Shaffer <3620100+rmshaffer@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:44:36 -0400 Subject: [PATCH] Update idle example --- ...programming_and_dynamical_decoupling.ipynb | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/examples/5_Pulse_programming_and_dynamical_decoupling.ipynb b/examples/5_Pulse_programming_and_dynamical_decoupling.ipynb index 716a6f5..aa5237b 100644 --- a/examples/5_Pulse_programming_and_dynamical_decoupling.ipynb +++ b/examples/5_Pulse_programming_and_dynamical_decoupling.ipynb @@ -70,7 +70,7 @@ "metadata": {}, "source": [ "## Customize delay with pulse programming\n", - "As a hello-world example, the pulse program below includes a `delay` instruction on the frame of the physical qubit `$0` followed by a capture instruction on the same frame. The pulse program represents measuring a qubit after a variable idling duration. It can be used quantify the decoherence of a qubit by comparing the measured state and the initial state after certain idling duration." + "As a hello-world example, the pulse program below includes a `delay` instruction on the drive frame of the physical qubit `$0` followed by a capture instruction on the readout frame of the same qubit. The pulse program represents measuring a qubit after a variable idling duration. It can be used to quantify the decoherence of a qubit by comparing the measured state and the initial state after a certain idling duration." ] }, { @@ -86,9 +86,11 @@ "\n", "@aq.main\n", "def idle():\n", - " control_frame = device.frames[f\"Transmon_{qubit}_readout_rx\"]\n", - " pulse.delay(control_frame, idle_duration)\n", - " pulse.capture_v0(control_frame)" + " drive_frame = device.frames[f\"Transmon_{qubit}_charge_tx\"]\n", + " pulse.delay(drive_frame, idle_duration)\n", + "\n", + " readout_frame = device.frames[f\"Transmon_{qubit}_readout_rx\"]\n", + " pulse.capture_v0(readout_frame)" ] }, { @@ -112,7 +114,7 @@ "OPENQASM 3.0;\n", "bit __bit_0__;\n", "cal {\n", - " delay[10.0us] Transmon_0_readout_rx;\n", + " delay[10.0us] Transmon_0_charge_tx;\n", " __bit_0__ = capture_v0(Transmon_0_readout_rx);\n", "}\n" ] @@ -206,19 +208,19 @@ "def idle_with_dd():\n", " dd_spacing = idle_duration / (4 * n_cycles)\n", "\n", - " control_frame = device.frames[f\"Transmon_{qubit}_charge_tx\"]\n", + " drive_frame = device.frames[f\"Transmon_{qubit}_charge_tx\"]\n", "\n", - " pulse.delay(control_frame, dd_spacing)\n", + " pulse.delay(drive_frame, dd_spacing)\n", " for _ in aq.range(n_cycles):\n", " x_pulse(qubit)\n", - " pulse.delay(control_frame, 2 * dd_spacing)\n", + " pulse.delay(drive_frame, 2 * dd_spacing)\n", " y_pulse(qubit)\n", - " pulse.delay(control_frame, 2 * dd_spacing)\n", + " pulse.delay(drive_frame, 2 * dd_spacing)\n", " x_pulse(qubit)\n", - " pulse.delay(control_frame, 2 * dd_spacing)\n", + " pulse.delay(drive_frame, 2 * dd_spacing)\n", " y_pulse(qubit)\n", "\n", - " pulse.delay(control_frame, dd_spacing)" + " pulse.delay(drive_frame, dd_spacing)" ] }, {