Estimate Re(⟨ψ|U|ψ⟩) for U=Z gate and |ψ⟩=|+⟩ using a single ancilla qubit.
-
Updated
Feb 19, 2026 - OpenQASM
Estimate Re(⟨ψ|U|ψ⟩) for U=Z gate and |ψ⟩=|+⟩ using a single ancilla qubit.
Measure |⟨ψ|φ⟩|² between two quantum states using a Fredkin (controlled-SWAP) gate.
Add a description, image, and links to the ancilla topic page so that developers can more easily learn about it.
To associate your repository with the ancilla topic, visit your repo's landing page and select "manage topics."