ServerCircuit.
ServerCircuit references a circuit that can be called for execution and simulation.
__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
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.
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.