-
Notifications
You must be signed in to change notification settings - Fork 328
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
VQC inside session #770
Comments
VQC has a
With None passed (default) as it states it uses the reference Sampler primitive from Qiskit. To use a real backend you need to instantiate and explicitly pass a runtime Sampler. As your code is above the Session is unused since that is only meaningful when used with the runtime primitives. |
Thanks a lot @woodsp-ibm . I have made the above change i.e. adding a sampler. Now I am getting this exception:- |
Its not a lot to go on. It should work. Maybe add your updated code here just in case. You can also look at the jobs in your account and see if there is any further error information listed there. |
@dhirajmadan1 does the issue persist when running VQC in a Session? I think your implementation as you wrote above should work. Please, feel free to describe more of the context of your problem, if necessary, so that we can further assist you. |
@dhirajmadan1, just a note that #843 is coming up with added support for V2 primitives. Once the PR is merged and the feature live in the upcoming 0.8.0 version, you may want to update the package and re-run your example. We look forward to receiving your feedback on your run with |
What should we add?
How to train/ test a VQC model using qiskit runtime sessions?
I tried encapsulating under session as below.
But it seems to be running on simulator even though a real backend is selected.
The text was updated successfully, but these errors were encountered: