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.

check_only_one_specified

Check that exactly one of kwargs is not None.

cast_tensor

Convert t to a torch tensor on current device (if not already so).

Classes

Default

Typed default value for a function argument.

Unit

Represent value and unit combination.

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.

Exceptions

CheckpointOverrideException

InvalidInputException

Modules

dict

Utilities to manipulate dictionaries used as input to constructors.

yaml

YAML wrappers handling includes and environment substitution.