Source code for piel.models.frequency.utils
from .defaults import get_default_models
__all__ = [
"compose_custom_model_library_from_defaults",
]
[docs]
def compose_custom_model_library_from_defaults(
custom_models: dict, *args, **kwargs
) -> dict:
"""
Compose the default measurement with the custom measurement.
Args:
custom_models (dict): Custom measurement dictionary.
Returns:
dict: Composed measurement dictionary.
"""
return {**get_default_models(*args, **kwargs), **custom_models}
def check_is_unitary(model: dict) -> bool:
"""
Check if the model is unitary.
Args:
model (dict): Model dictionary.
Returns:
bool: True if unitary, False if not.
"""
# TODO
pass