SamplerQNN.set_interpret¶
- SamplerQNN.set_interpret(interpret=None, output_shape=None)[fuente]¶
Change “interpret” and corresponding “output_shape”.
- Parámetros:
interpret (Callable[[int], int | tuple[int, ...]] | None) – A callable that maps the measured integer to another unsigned integer or tuple of unsigned integers. See constructor for more details.
output_shape (int | tuple[int, ...] | None) – The output shape of the custom interpretation. It is ignored if no custom interpret method is provided where the shape is taken to be
2^circuit.num_qubits
.