Comments (6)
Hi @masternerdguy thanks for the detailed issue description. This is a known issue in some classes from qiskit-algorithms
, and has been reported and is currently being discussed in qiskit-community/qiskit-algorithms#164. Until the issue is addressed in the corresponding repo, in this particular case, you may try to install qiskit-algorithms
from source and manually run a transpilation step to convert the circuit to ISA inside ComputeUncompute.run()
before the sampler is called. This will convert the unsupported instruction to the chosen backend's basis set.
from qiskit-ibm-runtime.
I think this was indeed my fault because I reran it with all of the circuits transpiled together in one pass, and the results look better:
It isn't quite what was expected based on the simulator, however this feels a lot better because setosa
is zero and having both a zero and one prediction instead of both being zero seems like the computation is going better. I am going to assume the difference is basically a stochastic effect combined with the reduced training data.
Thank you @ElePT for the workaround! I would be curious to know if there really is a difference between doing the transpilation one-by-one as opposed to together. I don't have enough of a quota to experiment with that.
from qiskit-ibm-runtime.
Thank you very much @ElePT for the explanation! Using that information, I think I have a workaround. For anyone who finds this, here is a patch file of the quick-and-dirty changes I made that allowed my job to be submitted:
Note that submitting the entire iris data set turned out to be rather ambitious at 11175 (!) circuits, which would blow out my quota by orders of magnitude. So, I discarded ~88% of the data set to bring it down to an acceptable number.
As of writing, the job is still running - however once completed I would expect these results based on the reduced data set in the simulator:
Obviously discarding most of the data set significantly affects the predictions, however if the job completes on the real hardware with similar output that will still validate the workaround. Now I just need to wait and see.
from qiskit-ibm-runtime.
Well, this is probably my fault somehow but it didn't quite work -
The original job did complete
As did a second one that ran immediately after for the fit step (which I didn't expect but makes sense in hindsight)
Any ideas? Might this just be due to the randomness of the training and the significantly reduced data set?
from qiskit-ibm-runtime.
I'm glad it helped @masternerdguy :) Regarding one-by-one vs batch transpilation, there should be no significant differences, but there is some stochasticity in certain transpiler passes. You can try setting the seed_transpiler
argument in transpile
to ensure that both runs are equivalent if you need to do further tests.
from qiskit-ibm-runtime.
Closing this one here and referring to it from qiskit-algorithms
as it is not a strictly a Qiskit Runtime issue (although, it is a consequence of a change in Qiskit Runtime)
from qiskit-ibm-runtime.
Related Issues (20)
- No module named 'qiskit.test' HOT 1
- How to run Fake Providers locally with QiskitRuntime HOT 6
- An error is raised when the scheduled circuit with PadDynamicalDecoupling pass from qiskit_ibm_runtime.transpiler.passes.scheduling is drawn
- 401 Client Error: Unauthorized for url: https://auth.quantum-computing.ibm.com/api/users/loginWithToken. Login failed., Error code: 3446. HOT 11
- Failing integration test `test_backend_fetch_all_qubit_properties `
- Failing integration test `test_too_many_qubits_in_circuit`
- IBMNotAuthorizedError: '401 Client Error: Unauthorized for url: https://auth.quantum-computing.ibm.com/api/users/loginWithToken. Login with some authorized provider required., Error code: 3445.' HOT 1
- Precision and shots are not consistent for EstimatorV2 HOT 1
- Variances for non-commuting observables are wrong
- Use attribute docstrings for options
- Move backend related modules from Qiskit HOT 1
- There are no e2e tests
- Unit tests failing against main branch of Qiskit
- Deprecate interim result streaming
- Remove the use of websocket for job status
- A faulty qubit in FakeHanoi
- Deprecate passing a string for backend
- JSON Error when retrieving job results HOT 1
- Allow retrieving all backend data HOT 1
- Add private job attribute
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qiskit-ibm-runtime.