Tamil
மொழிகள்
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.providers.ibmq.experiment.IBMExperimentService.create_figure

IBMExperimentService.create_figure(experiment_id, figure, figure_name=None, sync_upload=True)[source]

Store a new figure in the database.

Note

Currently only SVG figures are supported.

Parameters
  • experiment_id (str) -- ID of the experiment this figure is for.

  • figure (Union[str, bytes]) -- Name of the figure file or figure data to store.

  • figure_name (Optional[str]) -- Name of the figure. If None, the figure file name, if given, or a generated name is used.

  • sync_upload (bool) -- If True, the plot will be uploaded synchronously. Otherwise the upload will be asynchronous.

Return type

Tuple[str, int]

Returns

A tuple of the name and size of the saved figure.

Raises