-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto adjustment of GroverOptimizer.num_value_qubits
#109
Comments
@t-imamichi I went into this issue and I'm interested in fixing this. Could you tell me what too small means? Is there a paper or we should experiment with choosing this value? |
Thank you for having an interest in this issue. Here is the tutorial of |
Thank you for your answer. I'm creating some experiments and let you know about the results. |
It looks like num_value_qubits can be set starting with 1 and the algorithm works. The right solution is not always found. When increasing it the execution time starts to increase. It may get to a point when it get's disconnected in Jupyter output ( It happens that the result is there but the cell is still in running mode. I stopped the cell and the result appeared). @t-imamichi Do you have a specific example for num_value_qubits too small? |
For example, if you set |
What is the expected enhancement?
If
GroverOptimizer.num_value_qubits
is too small, it may result in an infinite loop due to overflow.It would be great if
GroverOptimizer
adjusts a sufficient value ofnum_value_qubits
automatically, and/orGroverOptimizer
raise a warning message ifnum_value_qubits
is too small.The text was updated successfully, but these errors were encountered: