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.

RunCite
Framework
PennyLane
Qubits
5
Depth
6
Gate set
H, RY, CSWAP
Licence
Apache-2.0
Version
v1
Updated
3 hours ago
Runs
None completed

README.md · 7.1 KB

Readme

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.