Skip to content

Commit 7566385

Browse files
committed
Alternative cell change (differnt seed rather than set initial-point)
1 parent 6b5d25e commit 7566385

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
@@ -312,11 +312,11 @@
312312
"from qiskit_algorithms import SamplingVQE\n",
313313
"from qiskit_algorithms.utils import algorithm_globals\n",
314314
"\n",
315-
"algorithm_globals.random_seed = 10598\n",
315+
"algorithm_globals.random_seed = 13345\n",
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, initial_point=[-0.5] * 12)\n",
319+
"sampling_vqe = SamplingVQE(sampler, ansatz, optimizer)\n",
320320
"\n",
321321
"result = sampling_vqe.compute_minimum_eigenvalue(qubit_op)\n",
322322
"\n",

0 commit comments

Comments
 (0)