Skip to content

Commit

Permalink
Fix tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
a-corni committed Dec 6, 2024
1 parent ff61fdf commit 4306e50
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"reg.draw()\n",
"\n",
"# State preparation using SLM mask\n",
"masked_qubits = [1, 2]\n",
"masked_qubits = [\"q1\", \"q2\"]\n",
"seq.config_slm_mask(masked_qubits)\n",
"masked_pulse = Pulse.ConstantDetuning(BlackmanWaveform(200, np.pi), 0, 0)\n",
"seq.add(masked_pulse, \"ch0\")\n",
Expand Down Expand Up @@ -259,7 +259,7 @@
"outputs": [],
"source": [
"# State preparation using SLM mask\n",
"masked_qubits = [1, 2]\n",
"masked_qubits = [\"q1\", \"q2\"]\n",
"seq.config_slm_mask(masked_qubits)\n",
"masked_pulse = Pulse.ConstantDetuning(BlackmanWaveform(200, np.pi), 0, 0)\n",
"seq.add(masked_pulse, \"ch0\")\n",
Expand All @@ -286,17 +286,17 @@
"plt.figure(figsize=[16, 18])\n",
"plt.subplot(311)\n",
"plt.plot(expectations[0])\n",
"plt.ylabel(\"Excitation of atom 0\", fontsize=\"x-large\")\n",
"plt.ylabel(\"Excitation of atom q0\", fontsize=\"x-large\")\n",
"plt.xlabel(\"Time ($\\mu$s)\", fontsize=\"x-large\")\n",
"plt.ylim([0, 1])\n",
"plt.subplot(312)\n",
"plt.plot(expectations[1])\n",
"plt.ylabel(\"Excitation of atom 1\", fontsize=\"x-large\")\n",
"plt.ylabel(\"Excitation of atom q1\", fontsize=\"x-large\")\n",
"plt.xlabel(\"Time ($\\mu$s)\", fontsize=\"x-large\")\n",
"plt.ylim([0, 1])\n",
"plt.subplot(313)\n",
"plt.plot(expectations[2])\n",
"plt.ylabel(\"Excitation of atom 2\", fontsize=\"x-large\")\n",
"plt.ylabel(\"Excitation of atom q2\", fontsize=\"x-large\")\n",
"plt.xlabel(\"Time ($\\mu$s)\", fontsize=\"x-large\")\n",
"plt.ylim([0, 1])\n",
"plt.show()"
Expand Down

0 comments on commit 4306e50

Please sign in to comment.