From ceb664dbd85bdd035c519dba43bc222ddcfec90b Mon Sep 17 00:00:00 2001 From: anastasiaangelo Date: Mon, 29 Jul 2024 11:30:15 +0200 Subject: [PATCH] location to insert optimiser --- Ising_mixerXY.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ising_mixerXY.py b/Ising_mixerXY.py index 43b9e30b..0471b9f6 100644 --- a/Ising_mixerXY.py +++ b/Ising_mixerXY.py @@ -240,7 +240,7 @@ def callback(quasi_dists, parameters, energy): initial_point = np.ones(2 * p) noisy_sampler = BackendSampler(backend=simulator, options=options, bound_pass_manager=PassManager()) -# insert optimzier +# insert optimiser start_time1 = time.time() qaoa1 = QAOA(sampler=noisy_sampler, optimizer=COBYLA(), reps=p, initial_state=qc, mixer=XY_mixer, initial_point=initial_point,callback=callback)