pyjuice.transformations.grow

pyjuice.transformations.grow(root_ns: CircuitNodes, num_duplicates: int, perturbation: float = 0.0)

Grow a PC by creating duplicates of all nodes (except for the root node). See https://arxiv.org/pdf/2211.12551.

Parameters:
  • root_ns (CircuitNodes) – the input PC

  • num_duplicates (int) – the number of duplicates

  • perturbation (float) – parameter perturbation

Returns:

a duplicated PC