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
5 of 7 runs
Runs
| Status | Backend | Shots | Wall time |
|---|---|---|---|
| Simulator default.qubit | 1024 | 27.1 s | |
| Simulator default.qubit | 1024 | 29.5 s | |
| Simulator default.qubit | 1024 | 27.6 s | |
| Simulator qiskit_aer | 1024 | 24.8 s | |
| Simulator qiskit_aer | 1024 | 18.8 s |
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.