jsondecode error occurring while running the quantum computer
56 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
採用された回答
Steven Lord
2024 年 7 月 1 日 18:05
2 件のコメント
Steven Lord
2024 年 7 月 2 日 17:28
Hmm. The developers are investigating this error and we will update this Answers post with more information as it becomes available.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!