Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1550 from lucasvanmol/patch-1
Browse files Browse the repository at this point in the history
[3.9] Fix qft function
  • Loading branch information
frankharkins committed Feb 24, 2023
2 parents 37e6561 + 7ed74c4 commit afd4880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/ch-algorithms/quantum-counting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
"source": [
"def qft(n):\n",
" \"\"\"Creates an n-qubit QFT circuit\"\"\"\n",
" circuit = QuantumCircuit(4)\n",
" circuit = QuantumCircuit(n)\n",
" def swap_registers(circuit, n):\n",
" for qubit in range(n//2):\n",
" circuit.swap(qubit, n-qubit-1)\n",
Expand Down

0 comments on commit afd4880

Please sign in to comment.