qubithubfidelity-kernel
Computes the quantum fidelity |⟨φ(x)|φ(y)⟩|² directly using the SWAP test circuit — an interferometric technique that measures state overlap via an ancilla qubit and controlled-SWAP gates. Requires 2n+1 qubits for n-qubit data encoding.
- Framework
- PennyLane
- Qubits
- 5
- Depth
- 12
- Gate set
- H, RY, CSWAP
- Licence
- Not specified
- Version
- v1
- Updated
- 3 days ago
- Last run
- 3 months ago
circuit.py · 12 KB
Code
Loading circuit.py…
Lineage
Not a fork.
No forks yet.
Suggested citation
@software{qubithub_fidelitykernel_2026,
author = {QubitHub Circuits},
title = {Fidelity Kernel (SWAP Test)},
year = {2026},
version = {v1},
url = {https://qubithub.co/qubithub/fidelity-kernel},
}Generated from this circuit's metadata. QubitHub does not mint DOIs, so this is not a registered identifier — check it against your venue's requirements before publishing.