Writing quantum code with generative AI IBM Quantum released Qiskit agent skills, a GitHub-hosted toolset that grounds large language models in trusted, up-to-date IBM Quantum resources so they generate accurate Qiskit code instead of relying on outdated or legacy sources. IBM said its developers and researchers report meaningful productivity gains from pairing generative AI with rigorous validation and domain expertise, and it recommends assuming hallucinations are always possible, validating AI outputs against trusted sources, and retaining human ownership of design decisions. The company offers free accounts on IBM Quantum Platform to run experiments on real quantum hardware and connect an LLM to the skills. Key takeaways: - Generative AI can lower the barrier to entry to quantum and Qiskit—helping users generate code, understand concepts, troubleshoot issues, and design experiments. - There is no single “right” way to use AI. The most effective workflows reflect each person’s goals, working style, and level of trust in the tools. - Grounding AI in trusted IBM Quantum resources like the newly released agent skills https://github.com/Qiskit/skills keeps generated code accurate and up to date. - Best practices—iterative workflows, human ownership, clear requirements, and layered validation—are what separate useful AI output from unreliable output. - IBM developers and researchers report meaningful productivity gains when they pair AI with rigorous validation and deep domain expertise. Artificial intelligence is rapidly changing how we learn about, maintain, and develop technology. Quantum computing is no exception. Across IBM Quantum, researchers, software developers, and technical teams are using generative AI to accelerate coding workflows, explore unfamiliar concepts, assist with research, and boost productivity. And it isn’t only professionals who benefit: quantum-curious students, educators, and developers can use these same tools to learn and build with quantum technology. Generative AI—and large language models LLMs in particular—can be a powerful companion for quantum development, but it is a tool, not a replacement for human expertise. Used well, an LLM can explain quantum concepts, generate and debug Qiskit code, navigate documentation, and automate repetitive steps, making quantum computing more accessible to newcomers and more productive for experts. In practice, many users find the greatest value in accelerating three common tasks: generating workflows, debugging issues, and validating results before moving on to deeper refinement. What makes AI and quantum work well together comes down to grounding. Quantum content in the broader ecosystem is still sparse, so general-purpose models, when unguided, can reach for outdated sources or legacy code and generate workflows that no longer reflect current Qiskit. A major focus for IBM Quantum is connecting these models to trusted, up-to-date IBM Quantum resources so they can reason accurately about Qiskit and IBM Quantum systems. One way we’re making this possible today is through tools that connect AI systems with trusted IBM Quantum resources. There is no single correct way to work with AI. Some developers trust agents to take an active role in coding workflows. Others prefer tightly scoped assistance and review every line by hand. These are style choices as much as technical ones. Whatever the workflow, the same guardrails apply: assume hallucinations are always possible, validate AI outputs against trusted sources, and retain human ownership of your design decisions. Ready to build your own AI-augmented quantum workflow? Create a free account on IBM Quantum Platform https://quantum.cloud.ibm.com/ to run experiments on real quantum hardware, then connect an LLM with Qiskit agent skills https://github.com/Qiskit/skills and put it to work. How can you use generative AI to develop quantum code? Generative AI benefits quantum developers in many of the same ways it benefits classical developers: it accelerates software development by generating, refining, and modifying algorithms and supporting code. For many users, the biggest benefit is getting a strong first pass at a workflow so they can spend more time refining ideas instead of starting from scratch. IBM researchers have used generative AI to analyze and summarize unfamiliar code repositories, automate repetitive tasks, and locate hard-to-find errors—for example, prompting an LLM to scan a project’s Git history and pinpoint exactly where a bug was introduced. But while LLMs can be reliable for classical software, they often struggle to capture the best practices of quantum development. Quantum capabilities and software evolve rapidly, and general-purpose models frequently generate deprecated or outdated Qiskit code. Developers should always verify that an LLM’s work aligns with IBM Quantum’s current services, research, and documentation. One way to close that gap is to ground your AI tools in Qiskit agent skills—open-source, shareable instructions that teach an LLM how to work with Qiskit the way it’s meant to be used. The growing collection of Qiskit Skills covers common development tasks ranging from code migration and workflow setup to error mitigation and domain-specific application workflows. For example, migrate-qiskit-ibm-runtime helps bring older qiskit-ibm-runtime code up to the latest client-side primitives. Another recently released skill takes on a different kind of problem: choosing the right error mitigation strategy. Getting useful results from noisy hardware depends on quantum error mitigation and suppression, but IBM Quantum offers a wide range of techniques—probabilistic error cancellation, zero-noise extrapolation, dynamical decoupling, and measurement twirling among them. Finding the right combination for a given workflow is challenging. The new select-error-mitigation skill analyzes your circuit and observable, evaluates which methods apply and which are feasible for your experiment, and runs local simulations to estimate how much each would improve accuracy. It then delivers a summary report that estimates both the accuracy gains and QPU time costs of each method, helping users navigate the tradeoff between accuracy and runtime cost. With your approval, it can also update your code to apply the methods it recommends. These skills are designed to make Qiskit expertise more accessible while helping users work from current IBM Quantum guidance and documentation. Additional skills are available for tasks such as managed workflow development and building quantum workflows for fermionic simulation—and the catalog will continue to expand as new capabilities are released. For the latest list of available skills, visit the Qiskit Skills repository https://github.com/Qiskit/skills on GitHub, which includes a skills roadmap https://github.com/Qiskit/skills skills-roadmap outlining upcoming additions and updates. What are the best practices for producing high-quality outputs with generative AI? Even with grounding, LLMs remain imperfect and ever-evolving tools. Hallucinations, overly complex solutions, and misinterpreted prompts mean that successful AI adoption requires thoughtful oversight and established guardrails. To counteract these problems, IBM researchers rely on a few core practices: - Iterative workflows: Rather than asking AI to solve an entire problem at once, break large tasks into smaller subtasks so you can validate outputs incrementally and intervene before small errors compound. - Human ownership: AI can inform decisions, but it shouldn’t make them. Understand the problem before you reach for an AI tool, so you can catch errors, spot needless complexity, and retain responsibility for high-level design. - Clear requirements and constraints: Specify constraints, expected outputs, dependencies, and APIs. Where possible, keep these requirements in design documents or spec sheets rather than ad hoc chat prompts, and validate outputs against trusted datasets, repositories, and known results. - Validation and review: Inspect AI-made changes file by file and apply standard engineering practices—security reviews, code reviews, linting, and unit tests—especially in large codebases where small defects are easy to miss. Together, these practices have produced meaningful productivity gains for IBM teams. Some report speedups on the order of 10x on specific, well-scoped tasks. How can generative AI assist in software development? Quantum software developers increasingly use AI agents to accelerate the tasks their jobs depend on—constructing and transpiling circuits, executing jobs on simulators, and building the SDKs and client libraries other developers rely on. Many describe these as tools for generating a fast first pass on routine work. They can complete simple tasks quickly, but their output requires human review. For that reason, developers tend to delegate work that is easy but time-consuming: isolating a section of code, extracting components, or making features interoperable—fixes that are valuable but might otherwise cost more time than they save. When a developer finds themselves executing the same workflow repeatedly, they can capture that process as an agent skill—a packaged bundle of instructions, plus the developer’s own preferences, stored in a SKILL.md file. Skills also guard against recurring mistakes: because LLMs often reach for deprecated Qiskit APIs, a skill can guide the model toward current APIs and recommended practices. Even with detailed instructions, AI can still make mistakes, so developers add multiple layers of verification: linting and unit tests to check the smallest operable parts of the code, and often a review loop in which developers iteratively prompt the model, inject its output, and refine the workflow until the result is acceptable. Ultimately, the developer retains responsibility for reviewing output and validating results. How can generative AI assist in research? Quantum researchers at IBM are also incorporating generative AI into their workflows. Like software developers, they treat AI as a fast but unreliable coder—but their emphasis differs. Rather than writing SDKs, researchers use AI to understand algorithms, build circuits, and test code before running it on quantum hardware. Because LLMs are good at synthesizing information, researchers often use them to analyze papers—extracting formulas from LaTeX, summarizing unfamiliar subfields, and surveying cited work. In one instance, a researcher fed an LLM what he believed was a novel discovery; combing through the literature, the model found that the method had already been used. AI can help researchers explore larger design spaces and generate candidate approaches for investigation. In one IBM project https://research.ibm.com/blog/ai-for-qec , an LLM-guided evolutionary framework generated and refined hundreds of candidate quantum error correction codes—including some with far more logical qubits than previously known examples. Crucially, the model didn't do this alone: a three-stage filtering process, designed and validated by researchers, separated the genuinely useful codes from the rest. Researchers also use LLMs to design and prepare experiments. These sessions reward clear, specific prompting: describing the circuit, conditions, and capabilities you want so the model can reason nontrivially about how to prepare the experiment. To give their tools the right access, researchers connect to Qiskit MCP servers, which can list available devices, retrieve queue, job, and result information, and run circuits on a classical simulator—letting them execute many commands directly through the LLM. Across every area, researchers don’t hand entire experiments to AI. LLMs can explain and synthesize complex concepts, but they don’t grasp the intent behind code or the physical world it describes. When the goal is to learn something profound about a device—or about quantum computing itself—human interpretation is irreplaceable. The human in the loop Generative AI has genuinely improved quantum workflows at every level of experience. Beginners can use it to learn, generating explanatory notebooks and surfacing resources. Software developers use it to generate and test code, from tedious chores to full circuits. Researchers use it to review literature and build verification harnesses before touching a device. And when paired with trusted resources and rigorous validation, AI can boost productivity substantially. Across these use cases, AI is most valuable when it accelerates learning, workflow creation, debugging, and validation while leaving judgment and decision-making to people. AI is, first and foremost, a tool. On this point the quantum community is unified: software and research experience are what make AI useful in the first place. LLMs are versatile, but they are no match for human thinking and creativity—and the best results come from keeping a knowledgeable human in the loop. Incorporate AI into your quantum workflow today The best way to learn these tools is to use them. Ground your preferred LLM in Qiskit agent skills to generate accurate, up-to-date quantum code. Have older Qiskit code gathering dust? Use Qiskit Skills to help modernize code, apply current IBM Quantum best practices, and build more sophisticated workflows. Whether you're migrating to the latest primitives, selecting error-mitigation techniques, deploying managed workflows, or developing application-focused quantum workloads, these skills can help ground your AI tools in trusted IBM Quantum guidance. Explore the latest collection of skills in the Qiskit Skills repository https://github.com/Qiskit/skills . The repository is open source, so you can file issues, suggest improvements, or contribute skills of your own.