About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
ResultDecoder
class ResultDecoder
Bases: object
Runtime job result decoder.
You can subclass this class and overwrite the decode()
method to create a custom result decoder for the results of your runtime program. For example:
class MyResultDecoder(ResultDecoder):
@classmethod
def decode(cls, data):
decoded = super().decode(data)
custom_processing(decoded) # perform custom processing
Users of your program will need to pass in the subclass when invoking qiskit.providers.ibmq.runtime.RuntimeJob.result()
or qiskit.providers.ibmq.runtime.IBMRuntimeService.run()
.
Methods
decode
classmethod ResultDecoder.decode(data)
Decode the result data.
Parameters
data (str
) – Result data to be decoded.
Return type
Any
Returns
Decoded result data.
Was this page helpful?
Report a bug or request content on GitHub.