Skip to content

Commit 6b5d25e

Browse files
committed
Update 05_qaoa notebook SamplingVQE cell for scipy 1.16.0
1 parent 3b10786 commit 6b5d25e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/tutorials/05_qaoa.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
"\n",
317317
"optimizer = COBYLA()\n",
318318
"ansatz = TwoLocal(qubit_op.num_qubits, \"ry\", \"cz\", reps=2, entanglement=\"linear\")\n",
319-
"sampling_vqe = SamplingVQE(sampler, ansatz, optimizer)\n",
319+
"sampling_vqe = SamplingVQE(sampler, ansatz, optimizer, initial_point=[-0.5] * 12)\n",
320320
"\n",
321321
"result = sampling_vqe.compute_minimum_eigenvalue(qubit_op)\n",
322322
"\n",
@@ -385,7 +385,7 @@
385385
"name": "python",
386386
"nbconvert_exporter": "python",
387387
"pygments_lexer": "ipython3",
388-
"version": "3.10.0"
388+
"version": "3.12.9"
389389
},
390390
"vscode": {
391391
"interpreter": {

0 commit comments

Comments
 (0)