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