mirror of
https://github.com/zama-ai/concrete.git
synced 2026-01-14 15:27:58 -05:00
2.5 KiB
2.5 KiB
module concrete.compiler.server_program
ServerProgram.
class ServerProgram
ServerProgram references compiled circuit objects.
method __init__
__init__(server_program: ServerProgram)
Wrap the native Cpp object.
Args:
server_program(_ServerProgram): object to wrap
Raises:
TypeError: if server_program is not of type _ServerProgram
method get_server_circuit
get_server_circuit(circuit_name: str) → ServerCircuit
Returns a given circuit if it is part of the program.
Args:
circuit_name(str): name of the circuit to retrieve.
Raises:
TypeError: if circuit_name is not of type strRuntimeError: if the circuit is not part of the program
method load
load(library_support: LibrarySupport, simulation: bool) → ServerProgram
Loads the server program from a library support.
Args:
library_support(LibrarySupport): library supportsimulation(bool): use simulation for execution
Raises:
TypeError: if library_support is not of type LibrarySupport, or if simulation is not of type bool
Returns:
ServerProgram: A server program object containing references to circuits for calls.