-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for saving/loading calibration parameters without schedul…
…es (#1357) 5b6fa06 added support for saving and loading `Calibrations` objects with a JSON format that preserved calibrated gate schedules. However, it did not capture and restore the `Parameter` objects for calibration parameters (like `drive_freq`) which were not associated with a schedule. This commit adds support for these parameters by adding an entry to the serialization model that holds a placeholder `QuantumCircuit` with the parameters attached to placeholder instructions. `ExperimentEncoder` can serialize `QuantumCircuit` to qpy and so supports this format. Using a placeholder circuit like this is the only supported way to serialize `Parameter` objects. An alternative approach would be to store and retrieve the hidden attributes of the `Parameter` objects directly. Closes #1355
- Loading branch information
Showing
2 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters