-
Notifications
You must be signed in to change notification settings - Fork 17
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
Broken installation (both via PyPi and GitHub) #27
Comments
I just merged #24 which changed some of the authentication bits, can you test with the current main branch and see if it's working. If it still doesn't work we'll need to get @chris-theroux or someone else at Quantinuum to take a look |
Hi @mtreinish. Thanks for taking a look at this. I gave this another go and it still seems to be giving some grief. It's possible I'm doing something silly, so allow me to explicitly write out what I am attempting to do:
from qiskit_quantinuum import Quantinuum which fails with:
from qiskit_quantinuum_provider import Quantinuum which also fails. Is it possible I am doing something incorrectly here? |
Hey @vprusso, taking a look at this. Will update soon Update: @mtreinish what do we need to do to get the package updated on pypi? |
For some reason GitHub doesn't notify me if a comment has been updated, so I just by luck saw that you updated this comment. Regarding your update:
This still does not appear to work on my end. If you read the comment I made up above, I did indeed attempt this import pattern, but it fails. Let me know if I can provide anything further that might be helpful in diagnosing this. |
Hey, sorry wasn't clear. I meant you had to correct import and it 'should' work but isn't. |
Gotcha. We're on the same page then :) Thanks for confirming, and do let me know if anything can be helpful from my end! |
Thanks for catching the issues! I made a small fix that should hopefully clear up the import problem. |
Thanks for keeping me up-to-date! The fix you put in looks like a likely candidate for a fix. When it goes in, if you want to give me a ping, I'll give it a go! Thanks again, @chris-theroux |
#28 merged. Please, reinstall from repository and let's check it. |
Hi @1ucian0, Thanks for following up on this. Indeed, I can now confirm that I can install (via git):
and then perform the import statement properly: from qiskit_quantinuum import Quantinuum I'm so close to being able to run something. Attempting to follow the README: import os
from qiskit_quantinuum import Quantinuum
from qiskit import *
Quantinuum.save_account(os.environ.get("QUANTINUUM_USERNAME"))
backends = Quantinuum.backends()
backend = Quantinuum.get_backend("H1-2E")
qc = QuantumCircuit(2, 2)
qc.h(0)
qc.cx(0, 1)
qc.measure([0,1], [0,1])
result = execute(qc, backend).result()
print(result.get_counts(qc)) Most of this runs fine (I can import However, the line: print(result.get_counts(qc)) results in the following error:
I imagine this is something that is most likely on the side of Quantinuum, but just putting here in case that's not right. (Minor point): fyi @chris-theroux , @1ucian0 |
According to this note in the docstrings of the
@vprusso can you have a try? Thanks all for the support, @1ucian0 @chris-theroux. |
Yes, that did the trick! Thanks to @chris-theroux and @1ucian0 for all the back-and-forth and work on this. Thanks as well to @nathanshammah for catching that in the docstrings. Before we close this issue out, might I make two minor suggestions (mostly for the benefit of any other users who might be planning on using this package): I would suggest either:
and removing the PyPi badge on the README or
Granted, I think it's definitely worth putting on PyPi, so as an alternative, perhaps it's worthwhile to do that, but I'll leave that ball in your court as to what makes the most sense. Additionally, I would make the following adaptation to the example in the README: from qiskit import *
qc = QuantumCircuit(2, 2)
qc.h(0)
qc.cx(0, 1)
qc.measure([0,1], [0,1])
result = execute(qc, backend).result()
print(result.get_counts()) (Note that the Thanks again, @chris-theroux , @1ucian0 and @nathanshammah ! |
I'll put up a fix to the README today. We definitely want the project on pypi. @mtreinish can I handle this or do I need your help? |
I'm reopening #26 as I still believe this to not be completely resolved.
Regarding being able to use the package, I have a question about usage. I see that the
.save_account
method naturally points to the Honeywell page for user login. Naturally, I'd rather use theqapi.quantinuum.com/
URL instead. I see that one can configure this (in principle) in theproxies
variableHowever, this seems to fail is appears to be pointing to the Honeywell login link despite the fact that (I thought) I was configuring it to login to a different URL. I'm most likely doing something wrong, but is it obvious what that might be? Thank you again for your help!
Here is the error output upon trying to call the associated
save_account
method:fyi @1ucian0 @mtreinish @chris-theroux
The text was updated successfully, but these errors were encountered: