Comments (3)
I have the same kind of error with the VQEProgram :
---------------------------------------------------------------------------
RuntimeJobFailureError Traceback (most recent call last)
/opt/anaconda3/envs/qiskit33/lib/python3.8/site-packages/qiskit_nature/runtime/vqe_program.py in compute_minimum_eigenvalue(self, operator, aux_operators)
281 try:
--> 282 result = job.result()
283 except Exception as exc:
/opt/anaconda3/envs/qiskit33/lib/python3.8/site-packages/qiskit/providers/ibmq/runtime/runtime_job.py in result(self, timeout, wait, decoder)
150 if self._status == JobStatus.ERROR:
--> 151 raise RuntimeJobFailureError(f"Unable to retrieve job result. "
152 f"{self.error_message()}")
RuntimeJobFailureError: 'Unable to retrieve job result. Job c6oslgutpkrb4a8528tg has failed:\n2021-12-09T09:22:16.872880026Z Traceback (most recent call last):\n2021-12-09T09:22:16.872924208Z File "/code/program_starter.py", line 61, in <module>\n2021-12-09T09:22:16.872934511Z user_params = json.loads(params, cls=RuntimeDecoder)\n2021-12-09T09:22:16.872940295Z File "/usr/local/lib/python3.8/json/__init__.py", line 370, in loads\n2021-12-09T09:22:16.872948511Z return cls(**kw).decode(s)\n2021-12-09T09:22:16.872961384Z File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode\n2021-12-09T09:22:16.872967043Z obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n2021-12-09T09:22:16.872970630Z File "/usr/local/lib/python3.8/json/decoder.py", line 353, in raw_decode\n2021-12-09T09:22:16.872979221Z obj, end = self.scan_once(s, idx)\n2021-12-09T09:22:16.872985246Z File "/usr/local/lib/python3.8/site-packages/qiskit/providers/ibmq/runtime/utils.py", line 229, in object_hook\n2021-12-09T09:22:16.872991404Z return _decode_and_deserialize(obj_val, qpy_serialization.load)[0]\n2021-12-09T09:22:16.872997088Z File "/usr/local/lib/python3.8/site-packages/qiskit/providers/ibmq/runtime/utils.py", line 87, in _decode_and_deserialize\n2021-12-09T09:22:16.873003717Z orig = deserializer(buff)\n2021-12-09T09:22:16.873009503Z File "/usr/local/lib/python3.8/site-packages/qiskit/circuit/qpy_serialization.py", line 1053, in load\n2021-12-09T09:22:16.873015140Z circuits.append(_read_circuit(file_obj))\n2021-12-09T09:22:16.873020644Z File "/usr/local/lib/python3.8/site-packages/qiskit/circuit/qpy_serialization.py", line 1058, in _read_circuit\n2021-12-09T09:22:16.873028100Z header, name, metadata = _read_header(file_obj)\n2021-12-09T09:22:16.873033730Z File "/usr/local/lib/python3.8/site-packages/qiskit/circuit/qpy_serialization.py", line 467, in _read_header\n2021-12-09T09:22:16.873039049Z metadata = json.loads(metadata_raw)\n2021-12-09T09:22:16.873044260Z File "/usr/local/lib/python3.8/json/__init__.py", line 343, in loads\n2021-12-09T09:22:16.873054760Z s = s.decode(detect_encoding(s), \'surrogatepass\')\n2021-12-09T09:22:16.873060800Z File "/usr/local/lib/python3.8/encodings/utf_32_be.py", line 11, in decode\n2021-12-09T09:22:16.873060856Z return codecs.utf_32_be_decode(input, errors, True)\n2021-12-09T09:22:16.873073215Z UnicodeDecodeError: \'utf-32-be\' codec can\'t decode bytes in position 4-7: code point not in range(0x110000)\n'
The above exception was the direct cause of the following exception:
RuntimeError Traceback (most recent call last)
<ipython-input-15-514be2738cef> in <module>
----> 1 runtime_result = runtime_vqe.compute_minimum_eigenvalue(hamiltonian)
/opt/anaconda3/envs/qiskit33/lib/python3.8/site-packages/qiskit_nature/runtime/vqe_program.py in compute_minimum_eigenvalue(self, operator, aux_operators)
282 result = job.result()
283 except Exception as exc:
--> 284 raise RuntimeError(f"The job {job.job_id()} failed unexpectedly.") from exc
285
286 # re-build result from serialized return value
RuntimeError: The job c6oslgutpkrb4a8528tg failed unexpectedly.
from qiskit-ibm-runtime.
@fvarchon @LenaPer The error is because Qiskit Runtime is still at Qiskit 0.32, and data serialized by 0.33 QPY will not work with 0.32. We are waiting for a QPY fix in qiskit-terra before upgrading. For the time being it should work if you continue using Qiskit 0.32. I'll close this once Qiskit Runtime is updated.
from qiskit-ibm-runtime.
Qiskit Runtime has been updated to Qiskit 0.33.1. Please update your Qiskit version to 0.33.1, since it has important fixes on encoder we use to send data to Runtime. Thanks for your patience!
from qiskit-ibm-runtime.
Related Issues (20)
- 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
- race condition in list pending jobs integration test
- Validate precision values in `estimator.run()`
- Provide a usage function on RuntimeJob so metrics don't have to be parsed HOT 1
- Add `EstimatorPubResult` with plotting methods
- Consider deprecating skip_transpilation and changing its default value HOT 1
- Batch.status says "pending" even if all jobs have been processed HOT 1
- Issues on Batch page HOT 2
- Remaining time of an instance
- Unit tests failing against Qiskit 1.2 again
- Add interface to execution span HOT 2
- Cannot use session in local mode HOT 1
- ISA checks inside control flow operations sometimes fail for valid circuits HOT 2
- RecursionError: maximum recursion depth exceeded HOT 2
- Allow specifying `interactive_ttl` when creating new Session
- Massive slowdown between versions when calling `backend.target.qubit_properties` HOT 2
- Missing Library stubs or py.typed marker
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.