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.aqua.operators.legacy.pauli_measurement

pauli_measurement(circuit, pauli, qr, cr, barrier=False)

GitHub

Add the proper post-rotation gate on the circuit.

Parameters

  • circuit (QuantumCircuit) – the circuit to be modified.
  • pauli (Pauli) – the pauli will be added.
  • qr (QuantumRegister) – the quantum register associated with the circuit.
  • cr (ClassicalRegister) – the classical register associated with the circuit.
  • barrier (bool, optional) – whether or not add barrier before measurement.

Returns

the original circuit object with post-rotation gate

Return type

QuantumCircuit

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