Qiskit Code Assistant (Beta)Write and optimize Qiskit code with a generative AI code assistant powered by IBM watsonx.
Increase quantum computing developer productivity and learn best practices for Qiskit and IBM Quantum Platform services with Qiskit Code Assistant! Make programming quantum computers even easier with Qiskit Code Assistant, a generative AI code assistant powered by IBM watsonx. Trained with millions of text tokens from Qiskit SDK v2.x, years of Qiskit code examples, and IBM Quantum features, Qiskit Code Assistant accelerates your quantum development workflow by offering LLM-generated suggestions based on Mistral-Small-3.2-24B-Instruct-2506 that incorporate the latest features and functionalities from Qiskit and IBM Quantum. Qiskit is the open-source quantum SDK preferred by 69% of respondents to the Unitary Fund's Open Source Software Survey, with nearly 600,000 registered users to date. Now you can get the performance and stability of the Qiskit SDK with the added efficiency of Qiskit Code Assistant to streamline your workflow and optimize your quantum computing programs. InstallationThe Qiskit Code Assistant extension is available on multiple platforms:
Installing in VSCode
Installing in VSCode-based IDEs
Features
Learn the best ways to use Qiskit and IBM Quantum Platform servicesImprove your Qiskit code by reviewing, browsing, and accepting model-generated code suggestions. Use abstract prompts to get startedProvide abstract prompts to Qiskit Code Assistant using
Use specific prompts for streamlined code completionUse
Get StartedOption 1: IBM Quantum Cloud (Recommended)Obtain your IBM Quantum Cloud Platform API tokenOpen the IBM Quantum Platform in your browser and log in with your IBM Quantum account. After logging in, an IBM Quantum API token is displayed on the upper right side of the web page. Set the API token in VS CodePress Type Paste your IBM Quantum API token in the pop-up dialog and press Managing Multiple CredentialsIf you have multiple IBM Quantum credentials configured in your Accept the model disclaimer/EULABy default, the model you will use is The first time you use the Option 2: Local Setup (For non-premium users)Run the one-line installer:
See LOCAL_SETUP.md for detailed instructions. Generate code suggestionsOnce you've accepted the model disclaimer/EULA, you can open a new file and start typing. If you type Review and accept/reject code suggestionsType Keyboard shortcutsCustomize keyboard shortcuts in VS Code using the
TelemetryThe Telemetry can be disabled by unchecking the
ContributingWe welcome contributions! If you'd like to contribute to Qiskit Code Assistant, please see our Contributing Guide. AI Development Assistant SupportThis repository includes AI-generated code and offers comprehensive guidance for AI coding assistants (like IBM Bob, Claude Code, GitHub Copilot, Cursor AI, and others) in AGENTS.md. This helps AI assistants provide more accurate, context-aware suggestions when working with this codebase. See the AI Development Assistant Support section in our Contributing Guide for more details. Terms of use
|

