pdft.circuit.apply_program#
- pdft.circuit.apply_program(program, tensors, x, *, inverse=False, **arithmetic)[source]#
Apply a program to an image, or to a stack of images.
xhas shape(..., 2**m, 2**n); leading axes are batch axes. The working precision follows the image: complex64 for a float32 or complex64 image, complex128 otherwise, and the tensors are cast to it. For the adjoint pass conjugated tensors withinverse=True.arithmetictakes the options ofCircuitCode(slices,merge_diagonals).apply_circuitandcontract_circuitare the single-image entry points the bases use; this is the same walk with batch axes and with the precision taken from the image.