Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.ignis.verification.composite_pauli_z_expvalue

composite_pauli_z_expvalue(counts_dictionary, qn)

GitHub

Generates expectation value of n tensored pauli matrix upon input of qubit number and composite pauli matrix

Parameters

  • counts_dictionary (Dict) – The counts
  • qn (int) – Number of qubits

Return type

float

Returns

The expectation value

Was this page helpful?
Report a bug or request content on GitHub.