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
23 hours ago
Runs
1 completed

metadata.json · 471 B

Code

Loading metadata.json…

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/circuits/1de957af-a38e-5603-b557-cab2b36444da},
  note = {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.