Serialization#
JSON serialization of a trained QFTBasis (the Julia package’s schema, tensor order and hash, so a basis saved by Julia loads here). Compression of an image in a basis, with its JSON form, is in pdft.tasks.
Serialization (JSON) of trained bases.
Contents
Write basis to a JSON file. |
|
Read basis from a JSON file. |
|
Serialize a QFTBasis to a plain Python dict (JSON-ready). |
|
Inverse of |
|
SHA256 of a canonical string form, matching Julia's |
|
Format a Python float the way Julia's |