Skip to content

Commit

Permalink
Corrections in QUBO tutorial.
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgeSaavedraB authored Nov 3, 2024
1 parent 70705ff commit f757ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demonstrations/tutorial_QUBO.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f757ad9

Please sign in to comment.