Skip to content

Commit

Permalink
nb
Browse files Browse the repository at this point in the history
  • Loading branch information
anurudhp committed Oct 29, 2024
1 parent 6248dbe commit 1df30f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
" state_prep = cirq.StatePreparationChannel(get_resource_state(m), name='chi_m')\n",
"\n",
" yield state_prep.on(*m_qubits)\n",
" yield walk_controlled.on_registers(**walk_regs, control=m_qubits[0])\n",
" yield walk_controlled.on_registers(**walk_regs, ctrl=m_qubits[0])\n",
" for i in range(1, m):\n",
" yield reflect_controlled.on_registers(control=m_qubits[i], **reflect_regs)\n",
" walk = walk ** 2\n",
Expand Down
3 changes: 1 addition & 2 deletions qualtran/bloqs/qubitization/qubitization_walk_operator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@
"\n",
"#### Parameters\n",
" - `select`: The SELECT lcu gate implementing $\\mathrm{SELECT}=\\sum_{l}|l\\rangle\\langle l|H_{l}$.\n",
" - `prepare`: Then PREPARE lcu gate implementing $\\mathrm{PREPARE}|0\\dots 0\\rangle = \\sum_l \\sqrt{\\frac{w_{l}}{\\lambda}} |l\\rangle = |L\\rangle$\n",
" - `control_val`: If 0/1, a controlled version of the walk operator is constructed. Defaults to None, in which case the resulting walk operator is not controlled. \n",
" - `prepare`: Then PREPARE lcu gate implementing $\\mathrm{PREPARE}|0\\dots 0\\rangle = \\sum_l \\sqrt{\\frac{w_{l}}{\\lambda}} |l\\rangle = |L\\rangle$ \n",
"\n",
"#### References\n",
" - [Encoding Electronic Spectra in Quantum Circuits with Linear T Complexity](https://arxiv.org/abs/1805.03662). Babbush et al. (2018). Figure 1.\n"
Expand Down

0 comments on commit 1df30f6

Please sign in to comment.