Simulate QKD and Optimize Parameters with BoTorch

implementationChallengeNovember 26, 2025

Prompt Content

Develop a simulation of the BB84 QKD protocol between two nodes, including photon loss, detector noise, and quantum bit errors. Implement error correction and privacy amplification to derive a secure shared key. Then, use `BoTorch` to optimize a QKD source parameter (e.g., photon pulse intensity or repetition rate) to maximize the secure key rate while maintaining the Quantum Bit Error Rate (QBER) below a specified threshold (e.g., 5%).

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations