Quantum computing

From beita6969/ScienceClaw · View interactive version

Quantum computing is an AI agent skill from the GitHub repository beita6969/ScienceClaw. Designs and analyzes quantum computing solutions including quantum circuit construction, algorithm implementation, error correction, and quantum advantage assessment; trigger when users discuss qubits, quantum gates, quantum algorithms, or quantum hardware.

How to use this skill

Skill file

When to Trigger

Activate this skill when the user mentions:

Step-by-Step Methodology

  1. Problem formulation - Determine if the problem has a known quantum advantage. Map the problem to a quantum computing framework: gate-based, adiabatic, or measurement-based. Identify required qubit count and circuit depth.
  2. Algorithm selection - For search: Grover's (quadratic speedup). For factoring: Shor's. For optimization: QAOA or quantum annealing. For chemistry: VQE or QPE. For machine learning: quantum kernels or variational classifiers.
  3. Circuit design - Construct the quantum circuit using elementary gates (H, CNOT, Rz, Ry). Decompose multi-qubit gates into native gate sets. Minimize circuit depth and CNOT count for near-term hardware compatibility.
  4. Simulation - Simulate circuit on classical hardware using Qiskit Aer, Cirq, or PennyLane. For small systems (<30 qubits), use statevector simulation. For larger systems, use tensor network or MPS methods.
  5. Noise analysis - Model realistic noise: single-qubit and two-qubit gate errors, measurement errors, T1/T2 decoherence times. Use noise models from real hardware backends (IBM Quantum, IonQ).
  6. Error mitigation / correction - For near-term (NISQ): zero-noise extrapolation, probabilistic error cancellation, dynamical decoupling. For fault-tolerant: surface codes, repetition codes, logical qubit encoding.
  7. Results analysis - Compare quantum vs. classical performance. Report circuit metrics (depth, gate count, qubit count). Assess scalability and resource requirements for practical problem sizes.

Key Databases and Tools

Output Format

Quality Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.