annotate_encoding¶
- guppyft.encode.annotate_encoding(hugr, encoding_name, params)[source]¶
Annotate a HUGR package with encoding parameters.
- Return type:
- Parameters:
hugr – The package or HUGR to annotate.
encoding_name – The name of the encoding to annotate.
params – The serializable encoding parameters.
- Raises:
ValueError – If params cannot be serialized as JSON.