Korean
언어
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.result.sampled_expectation_value

sampled_expectation_value(dist, oper)[소스]

Computes expectation value from a sampled distribution

Note that passing a raw dict requires bit-string keys.

매개변수
반환

The expectation value

반환 형식

float

예외 발생

QiskitError – if the input distribution or operator is an invalid type