qdk_chemistry.migrate._qpe_result module

Migrate the QpeResult serialization schema to the current version.

qdk_chemistry.migrate._qpe_result.from_json_doc(doc)[source]

Normalize a parsed legacy QPE result into an old-doc.

Return type:

dict

Parameters:

doc (dict)

qdk_chemistry.migrate._qpe_result.from_hdf5_file(path)[source]

Read a legacy QPE-result HDF5 file into an old-doc.

Return type:

dict

qdk_chemistry.migrate._qpe_result.to_new_json(old)[source]

Remove the obsolete evolution time and emit the current schema.

Return type:

dict

Parameters:

old (dict)