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