경고
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.experiment.IBMExperimentService.create_figure¶
- IBMExperimentService.create_figure(experiment_id, figure, figure_name=None, sync_upload=True)[소스]¶
Store a new figure in the database.
참고
Currently only SVG figures are supported.
- 매개변수
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. IfNone
, the figure file name, if given, or a generated name is used.sync_upload (
bool
) – IfTrue
, the plot will be uploaded synchronously. Otherwise the upload will be asynchronous.
- 반환 형식
Tuple
[str
,int
]- 반환
A tuple of the name and size of the saved figure.
- 예외 발생
IBMExperimentEntryExists – If the figure already exits.
IBMQApiError – If the request to the server failed.