警告
The package qiskit-ibmq-provider
is being deprecated and its repo is going to be
archived soon. Please transition to the new packages. More information in
https://ibm.biz/provider_migration_guide
qiskit.providers.ibmq.runtime.RuntimeJob.stream_results¶
- RuntimeJob.stream_results(callback, decoder=None)[ソース]¶
Start streaming job results.
- パラメータ
callback (
Callable
) –Callback function to be invoked for any interim results. The callback function will receive 2 positional parameters:
Job ID
Job interim result.
decoder (
Optional
[Type
[ResultDecoder
]]) – AResultDecoder
subclass used to decode job results.
- 例外
RuntimeInvalidStateError – If a callback function is already streaming results or if the job already finished.
- 戻り値の型
None