Korean
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.providers.ibmq.runtime.UserMessenger.publish

UserMessenger.publish(message, encoder=<class 'qiskit.providers.ibmq.runtime.utils.RuntimeEncoder'>, final=False)[소스]

Publish message.

You can use this method to publish messages, such as interim and final results, to the program user. The messages will be made immediately available to the user, but they may choose not to receive the messages.

The final parameter is used to indicate whether the message is the final result of the program. Final results may be processed differently from interim results.

매개변수
  • message (Any) – Message to be published. Can be any type.

  • encoder (Type[JSONEncoder]) – An optional JSON encoder for serializing

  • final (bool) – Whether the message being published is the final result.

반환 형식

None