Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikandreasseitz committed Jul 4, 2024
1 parent 81ac1c5 commit 98eee1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qadence_embeddings/embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ def reembed_all(
embedded_params: dict[str, ArrayLike],
new_root_params: dict[str, ArrayLike],
) -> dict[str, ArrayLike]:
"""Receive already embedded params containing intermediate and leaf parameters
and remove them from the `embedded_params` dict to reconstruct the user input, and finally
recalculate the embedding using values for parameters in passes in `new_root_params`.
"""
# We filter out intermediates and leaves and leave only the original vparams and fparams +
# the `inputs` dict which contains new <name:parameter value> pairs
inputs = {
Expand Down

0 comments on commit 98eee1b

Please sign in to comment.