-
Notifications
You must be signed in to change notification settings - Fork 60
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
Prevent double authentication while using openqaoa-azure
#233
Comments
@vishal-ph I would like to take a stab at this issue. Could you assign it to me? |
NOTE: - Please branch out from |
Hi, @vishal-ph. I was trying to reproduce the issue with steps described above. My code is below
and my results after the execution code above is the following: The next thing regarding
I found that method So please give more details to have a more clear picture of what is going on. |
@TerraVenil, thanks for taking a look at this issue! Regarding your questions:
Let me know if you still have questions or something is unclear! Thanks |
I have installed Azure CLI and also provided the correct resourceId and location. Screenshot demonstrated that Azure Quantum iterates over a list of credentials to find the most appropriate to current user setup. So now I intentionally skipped the step of
To understand if we necessarily need this check I have created small unit test to demonstrate such case
Do we really expect that the user(is it a normal/obvious/intuitive scenario?) before using |
@Q-lds or @vishal-ph please assign this issue to me. Thanks. |
Fixed this issue in PR #249 |
Prerequisites
Before raising this issue, I have already checked that I am:
Describe the bug
Running a QAOA problem using the OpenQAOA workflow as described in this notebook will require web authentication twice before executing the run. For reference, see the attached screenshot.
This happens because DeviceAzure, which is defined in
src/openqaoa-azure/openqaoa_azure/backends/devices.py
, has a method calledcheck_connection
, that is called twice, once from within the workflow and the other time from within the backend object.To Reproduce
Steps to reproduce the behavior:
qubo
for a problem of choiceq = QAOA()
q.compile(qubo)
Expected behavior
Upon executing the above steps, the web authenticator should only prompt once for device authentication
Screenshots
The text was updated successfully, but these errors were encountered: