SimulatedValueExporter.
A helper class to create Value
s.
__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
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
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
new(
client_parameters: ClientParameters,
circuitName: str = 'main'
) → SimulatedValueExporter
Create a value exporter.