Skip to content

Commit

Permalink
Update cus.py
Browse files Browse the repository at this point in the history
  • Loading branch information
albayaty authored Aug 15, 2024
1 parent 69e72cb commit f764ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grover_controlled_diffuser/cus.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def num_CUs_gates(n):
"""

# Consistency checking:
if (qubits < 3):
if (n < 3):
print(f"\n⟩⟩⟩ ERROR: The CUs operator should have more than {n} qubits!")
print(f"⟩⟩⟩ INFO: The CUs operator has n qubits (n-1 inputs + 1 output), where n >= 3.\n")
return
Expand Down

0 comments on commit f764ae1

Please sign in to comment.