Skip to content

Commit

Permalink
Updated tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
tnemoz committed Sep 21, 2024
1 parent 4d21939 commit 6ae490b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tutorials/04_vqd.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@
],
"source": [
"from qiskit.circuit.library import TwoLocal\n",
"from qiskit_algorithms.optimizers import SLSQP\n",
"from qiskit_algorithms.optimizers import COBYLA\n",
"\n",
"ansatz = TwoLocal(2, rotation_blocks=[\"ry\", \"rz\"], entanglement_blocks=\"cz\", reps=1)\n",
"\n",
"optimizer = SLSQP()\n",
"optimizer = COBYLA()\n",
"ansatz.decompose().draw(\"mpl\")"
]
},
Expand Down Expand Up @@ -128,7 +128,7 @@
"outputs": [],
"source": [
"k = 3\n",
"betas = [33, 33, 33]"
"betas = [3, 3, 3]"
]
},
{
Expand Down

0 comments on commit 6ae490b

Please sign in to comment.