From f757ad9d4fbd0c3faedaef029915af0ea126993e Mon Sep 17 00:00:00 2001 From: Jorge Saavedra <139413905+JorgeSaavedraB@users.noreply.github.com> Date: Sat, 2 Nov 2024 21:33:36 -0600 Subject: [PATCH] Corrections in QUBO tutorial. --- demonstrations/tutorial_QUBO.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demonstrations/tutorial_QUBO.py b/demonstrations/tutorial_QUBO.py index fcef15a19b..86cbc70085 100644 --- a/demonstrations/tutorial_QUBO.py +++ b/demonstrations/tutorial_QUBO.py @@ -356,7 +356,7 @@ def time_to_solution(n, time_single_case): @qml.qnode(dev) -def qaoa_circuit(gammas, betas, h, J, num_qubits): +def qaoa_circuit(gammas, betas, h, J, num_qubits, wires=num_qubits): wmax = max( np.max(np.abs(list(h.values()))), np.max(np.abs(list(J.values()))) ) # Normalizing the Hamiltonian is a good idea