fhelium.experimental.jit.passes.insert_plaintext_preparation
Insert operation-specific plaintext preparation operations.
InsertPlaintextPreparationPass
class View source
python
InsertPlaintextPreparationPass(name: str = 'insert-plaintext-preparation')1
Insert a plaintext-preparation operation for each logical mixed op.
The operation records whether addition uses the consumer ciphertext scale, multiplication encodes a message/static value at the engine default scale, or multiplication retains a caller-owned Plaintext's runtime scale. An operation marker makes repeated application idempotent.
Attributes
| Name | Type | Default/value |
|---|---|---|
name | str | 'insert-plaintext-preparation' |
run
method
python
def run(program: Program, workspace: MutableMapping[Any, Any]) -> PassResult: ...1
Prepare recognized public operands across all function blocks.