AI Circuit Generation

AI Circuit Generation allows the user to generate a quantum circuit from a natural language description directly inside VS Code.

The feature is available through the Quantag Studio VS Code extension. When invoked, it asks the user to describe the desired quantum circuit, sends this description to the backend AI generation service, and opens the generated OpenQASM source code in a new editor window.

Usage

To use AI Circuit Generation, run the corresponding command in VS Code:

  • QuantagStudio: Generate Circuit AI

Screenshot 1

After that, the extension will show an input field with the prompt:

  • Describe the quantum circuit

Screenshot 2

Example requests:

  • create Bell state with 2 qubits

  • create GHZ state with 3 qubits

  • generate QFT for 4 qubits

  • create simple variational circuit

The entered text is sent to the backend AI generation endpoint. If generation succeeds, the returned QASM source code is opened automatically in the editor.

Notes

  • The feature generates circuit source code from a text description.

  • The generated result is opened in the editor and can then be reviewed, modified, run, or debugged by the user.

  • If generation fails, the extension shows an error message.

Limitation

The quality and correctness of the generated circuit depend on the backend AI service and the user prompt.

Generated circuits should be reviewed before execution or use in production.