jsondecode error occurring while running the quantum computer

조회 수: 12 (최근 30일)
Kiwon Jeong
Kiwon Jeong 2024년 7월 1일
댓글: Steven Lord 2024년 7월 2일
Hello, I am a graduate student recently studying quantum computers. I heard that it is possible to run a quantum computer through MATLAB, so I tried to implement a simple example, but a transpile error occurred. I looked at the bug reports and tried again. The task was successfully completed, but when I used the fetchOutput function to see the results, the following error occurred. From the error details, it seems that the response is not in a suitable data format for using jsondecode. What should I do?
>> fetchOutput(task)
An error occurred during the following usage: jsondecode The JSON text must be a character vector or a scalar of string type that is not a missing value.
error ocurrence: quantum.internal.ibm.getQuantumTaskResults (12rh line)
results = jsondecode(response);
error ocurrence: quantum.backend.QuantumTaskIBM/fetchOutput (224th line)
results = quantum.internal.ibm.getQuantumTaskResults(obj.Credentials, obj.TaskID);
Please note that I am using the Korean version of MATLAB, so the error message might be different from the English version, but the meaning is the same.

채택된 답변

Steven Lord
Steven Lord 2024년 7월 1일
Please see Bug Report 3241896.
  댓글 수: 2
Kiwon Jeong
Kiwon Jeong 2024년 7월 2일
task =
QuantumTaskIBM - 속성 있음:
TaskID: "ct1pnkpnb5jg008f6w4g"
SessionID: <missing>
AccountName: "KWJEONG"
Status: "finished"
I tried to follow bug report, and I got task successfully. However, when I try to run task with fetchOutput(task), I still get error with jsondecode.
Steven Lord
Steven Lord 2024년 7월 2일
Hmm. The developers are investigating this error and we will update this Answers post with more information as it becomes available.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Quantum Mechanics에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by