mirror of
https://github.com/zama-ai/concrete.git
synced 2026-01-14 23:38:10 -05:00
2.7 KiB
2.7 KiB
module concrete.compiler.server_circuit
ServerCircuit.
class ServerCircuit
ServerCircuit references a circuit that can be called for execution and simulation.
method __init__
__init__(server_circuit: ServerCircuit)
Wrap the native Cpp object.
Args:
server_circuit(_ServerCircuit): object to wrap
Raises:
TypeError: if server_circuit is not of type _ServerCircuit
method call
call(
public_arguments: PublicArguments,
evaluation_keys: EvaluationKeys
) → PublicResult
Executes the circuit on the public arguments.
Args:
public_arguments(PublicArguments): public arguments to execute onexecution_keys(EvaluationKeys): evaluation keys to use for execution.
Raises:
TypeError: if public_arguments is not of type PublicArguments, or if evaluation_keys is not of type EvaluationKeys
Returns:
PublicResult: A public result object containing the results.
method simulate
simulate(public_arguments: PublicArguments) → PublicResult
Simulates the circuit on the public arguments.
Args:
public_arguments(PublicArguments): public arguments to execute on
Raises:
TypeError: if public_arguments is not of type PublicArguments
Returns:
PublicResult: A public result object containing the results.