量子计算开发需要理解复杂的电路设计、转换和硬件特定优化。此技能提供全面的指导,帮助构建量子电路、在模拟器或真实硬件上运行VQE和QAOA等算法,并可视化结果。
下載技能 ZIP
在 Claude 中上傳
前往 設定 → 功能 → 技能 → 上傳技能
開啟並開始使用
測試它
正在使用「qiskit」。 Create a quantum circuit that creates a Bell state and run it on a local simulator
預期結果:
- Created 2-qubit quantum circuit with Hadamard and CNOT gates
- Applied H(0) for superposition then CX(0,1) for entanglement
- Added measurements to both qubits
- Ran with StatevectorSampler: 1024 shots
- Results: {'00': ~512, '11': ~512} - perfect entanglement confirmed
正在使用「qiskit」。 How do I set up my IBM Quantum account and run on real hardware
預期結果:
- Install Qiskit: uv pip install qiskit
- Create IBM Quantum account at quantum.ibm.com
- Save your API token for authentication
- Use QiskitRuntimeService to connect to backends
- Check backend status and queue times before submitting
安全審計
安全Pure documentation skill containing only markdown files with quantum computing references. No executable code, scripts, or network operations. Static findings are false positives caused by markdown code formatting (backticks) being misidentified as shell commands, and quantum algorithm names (VQE, QAOA, Grover) being misidentified as weak cryptographic algorithms.
風險因素
⚙️ 外部命令 (357)
🌐 網路存取 (11)
品質評分
你能建構什麼
量子化学模拟
使用VQE算法计算分子基态能量并模拟化学反应
优化算法
实现QAOA以解决MaxCut和投资组合优化等组合优化问题
量子机器学习
构建量子核函数和神经网络以完成分类和模式识别任务
試試這些提示
使用Qiskit创建一个纠缠两个量子比特并测量它们的贝尔态电路。展示如何在本地使用StatevectorSampler运行它。
展示如何使用变分量子本征求解器(VQE)用Qiskit找到H2分子的基态能量。
编写代码将量子电路转换为IBM Quantum硬件格式,设置optimization_level=3并解释转换阶段。
使用Qiskit原语实现量子近似优化算法(QAOA)来解决4节点图上的MaxCut问题。
最佳實務
- 在昂贵的硬件后端上运行之前,先用本地模拟器测试电路
- 生产工作负载始终使用optimization_level=3进行电路转换
- 对VQE和QAOA等迭代算法使用会话模式以减少排队时间
避免
- 直接在硬件上运行未经转换且未优化的电路
- 为用例选择错误原语(Sampler vs Estimator)
- 在嘈杂的量子硬件上运行时跳过错误缓解