Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.result.sampled_expectation_value

sampled_expectation_value(dist, oper)[source]

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