Note
This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.
Calibrations.save¶
- Calibrations.save(file_type='csv', folder=None, overwrite=False, file_prefix='', most_recent_only=False)[source]¶
Save the parameterized schedules and parameter value.
The schedules and parameter values can be stored in csv files. This method creates three files:
parameter_config.csv: This file stores a table of parameters which indicates which parameters appear in which schedules.
parameter_values.csv: This file stores the values of the calibrated parameters.
schedules.csv: This file stores the parameterized schedules.
Warning
Schedule blocks will only be saved in string format and can therefore not be reloaded and must instead be rebuilt.
- Parameters:
file_type (
str
) – The type of file to which to save. By default this is a csv. Other file types may be supported in the future.folder (
Optional
[str
]) – The folder in which to save the calibrations.overwrite (
bool
) – If the files already exist then they will not be overwritten unless overwrite is set to True.file_prefix (
str
) – A prefix to add to the name of the files such as a date tag or a UUID.most_recent_only (
bool
) – Save only the most recent value. This is set to False by default so that when saving to csv all values will be saved.
- Raises:
CalibrationError – If the files exist and overwrite is not set to True.