fhelium.compile.passes.ckks._assign_depths
Assign CKKS depths from the rescale and modulus-switch operations in a Program.
AssignCkksDepthsPass
class View source
python
AssignCkksDepthsPass(entry_depth: int | None = None)1
Assign depths and align add/sub joins after rescale placement.
Existing rescale nodes advance one public depth. At add/sub fan-in, only the lower-depth consumer edge is advanced through a real ModSwitchOp. Repeated application does not duplicate either transition.
Attributes
| Name | Type | Default/value |
|---|---|---|
entry_depth | int | None | None |
name | str | field(default='assign-ckks-depths', init=False) |
run
method
python
def run(compilation: 'Compilation') -> PassResult: ...1