qimpy.io

I/O functionality including checkpoints and logging.

Functions

log_config

Configure logging globally for the qimpy library.

fmt

Standardized conversion of torch tensors and numpy arrays for logging.

cast_default

Cast an optional default to retain only the value.

Classes

Default

Typed default value for a function argument.

Checkpoint

Helper for checkpoint load/save from HDF5 files.

CheckpointPath

Combination of optional checkpoint and path within it.

CheckpointContext

Identify from where/when a checkpoint is being written.

Unit

Represent value and unit combination.

Exceptions

CheckpointOverrideException

InvalidInputException

Modules

qimpy.io.dict

Utilities to manipulate dictionaries used as input to constructors.

qimpy.io.yaml

YAML wrappers handling includes and environment substitution.