---
title: SamplexOutput (latest version)
description: API reference for samplomatic.samplex.SamplexOutput in the latest version of samplomatic
source: https://quantum.cloud.ibm.com/docs/en/api/samplomatic/auto/samplex-samplex-output
---

# SamplexOutput

*class* `samplomatic.samplex.SamplexOutput(specs: Iterable[TensorSpecification], metadata: dict[str, Any] | None = None)`

[GitHub](https://github.com/Qiskit/samplomatic/tree/main/samplomatic/samplex/interfaces.py#L22-L34)

Bases: [`TensorInterface`](/docs/api/samplomatic/auto/tensor-interface-tensor-interface "samplomatic.tensor_interface.TensorInterface")

The output of a single call to [`sample()`](/docs/api/samplomatic/auto/samplex-samplex#sample "samplomatic.samplex.Samplex.sample").

**Parameters**

- **specs** – An iterable of specifications for the allowed data in this interface.
- **metadata** – Information relating to the process of sampling.
