Before raising this issue, I have already checked that I am:
[x] running the latest version
[x] made sure that this issue has not already been filed
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 extra cost gates with angle=0.
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.
Hi, I just created a PR that handles this issue. Could a maintainer please assign me to this ?
(I had to close the previous PR as it contained a different not-yet-merged PR modifications)
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.