Files
concrete/docs/dev/api/concrete.compiler.simulated_value_exporter.md
Benoit Chevallier-Mames e352eff1b3 docs(compiler): adding API doc
2024-03-13 14:52:46 +01:00

2.7 KiB

module concrete.compiler.simulated_value_exporter

SimulatedValueExporter.


class SimulatedValueExporter

A helper class to create Values.

method __init__

__init__(value_exporter: SimulatedValueExporter)

Wrap the native C++ object.

Args: value_exporter (_SimulatedValueExporter): object to wrap

Raises: TypeError: if value_exporter is not of type _SimulatedValueExporter


method export_scalar

export_scalar(position: int, value: int)  Value

Export scalar.

Args: position (int): position of the argument within the circuit

value (int): scalar to export

Returns: Value: exported scalar


method export_tensor

export_tensor(position: int, values: List[int], shape: List[int])  Value

Export tensor.

Args: position (int): position of the argument within the circuit

values (List[int]): tensor elements to export

shape (List[int]): tensor shape to export

Returns: Value: exported tensor


method new

new(client_parameters: ClientParameters)  SimulatedValueExporter

Create a value exporter.