ServerProgram.
ServerProgram references compiled circuit objects.
__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
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
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.