Warning if 0
is passed in numbers_list
in NumberPartition
problem
#209
Labels
0
is passed in numbers_list
in NumberPartition
problem
#209
Prerequisites
Before raising this issue, I have already checked that I am:
Describe the bug
Upon creating an instance of the NumberPartition problem with a
0
entry in the list, the problem is created with redundant qubit and terms. These terms then manifest as extracost gates
withangle=0
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The problem class should catch
0
in the list and raise a warning while removing the zero from the list, and create a problem with the remaining qubits.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: