Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.result.Result.get_counts

Result.get_counts(experiment=None)[source]

Get the histogram data of an experiment.

প্যারামিটার

experiment (str or QuantumCircuit or Schedule or int or None) -- the index of the experiment, as specified by data([experiment]).

রিটার্নস

a dictionary or a list of dictionaries. A dictionary has the counts for each qubit with the keys containing a string in binary format and separated according to the registers in circuit (e.g. 0100 1110). The string is little-endian (cr[0] on the right hand side).

রিটার্ন টাইপ

dict[str, int] or list[dict[str, int]]

রেইজেস

QiskitError -- if there are no counts for the experiment.