qiskit-documentation/docs/api/qiskit/0.26/qiskit.aqua.operators.legac...

30 lines
964 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: measure_pauli_z (v0.26)
description: API reference for qiskit.aqua.operators.legacy.measure_pauli_z in qiskit v0.26
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.aqua.operators.legacy.measure_pauli_z
---
<span id="qiskit-aqua-operators-legacy-measure-pauli-z" />
# qiskit.aqua.operators.legacy.measure\_pauli\_z
<Function id="qiskit.aqua.operators.legacy.measure_pauli_z" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/aqua/operators/legacy/common.py" signature="measure_pauli_z(data, pauli)">
Appropriate post-rotations on the state are assumed.
**Parameters**
* **data** (*dict*) a dictionary of the form data = \{00000: 10} (\{str: int})
* **pauli** ([*Pauli*](qiskit.quantum_info.Pauli "qiskit.quantum_info.Pauli")) a Pauli object
**Returns**
Expected value of paulis given data
**Return type**
float
</Function>