Языки
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese



SamplerQNN.set_interpret

SamplerQNN.set_interpret(interpret=None, output_shape=None)[исходный код]

Change „interpret“ and corresponding „output_shape“.

Параметры:
  • 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.