# module `concrete.compiler.server_program` ServerProgram. --- ## class `ServerProgram` ServerProgram references compiled circuit objects. ### method `__init__` ```python __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` ```python 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 str - `RuntimeError`: if the circuit is not part of the program --- ### method `load` ```python load(library_support: LibrarySupport, simulation: bool) → ServerProgram ``` Loads the server program from a library support. **Args:** - `library_support` (LibrarySupport): library support - `simulation` (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.