rnz#
- iqm.qaoa.circuits.rnz(n, theta)[source]#
Construct an n-qubit Pauli-Z string rotation circuit.
This circuit implements the unitary
\[\begin{split}U(\\theta) = e^{-i \\frac{\\theta}{2} Z^{\\otimes n}}\end{split}\]where \(Z^{\\otimes n}\) denotes the tensor product of Pauli-Z operators acting on all
nqubits.The implementation uses a CNOT ladder to compute the parity of qubits
1throughn-1onto qubit0, applies a single-qubit \(R_Z(\\theta)\) rotation on qubit0, and then uncomputes the parity.- Parameters:
- Returns:
A quantum circuit implementing the n-qubit Z-string rotation.
- Return type: