pyjuice.blockify

pyjuice.blockify(root_ns: CircuitNodes, sparsity_tolerance: float = 0.25, max_target_block_size: int = 32, use_cuda: bool = True) CircuitNodes

Generate an equivalent PC with potentially high block sizes.

Parameters:
  • root_ns (CircuitNodes) – the input PC

  • sparsity_tolerance (float) – allowed fraction of zero parameters to be added (should be in the range (0, 1])

  • max_target_block_size (int) – the maximum block size to search for

  • use_cuda (bool) – use GPU when possible

Returns:

An equivalent CircuitNodes