SamplerQNN.set_interpret¶
- SamplerQNN.set_interpret(interpret=None, output_shape=None)[sorgente]¶
Change “interpret” and corresponding “output_shape”.
- Parametri:
interpret – A callable that maps the measured integer to another unsigned integer or tuple of unsigned integers. See constructor for more details.
output_shape – 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
.