Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>OpenQASM 3.0 Language SupportNew to Visual Studio Code? Get it now.
OpenQASM 3.0 Language Support

OpenQASM 3.0 Language Support

orangekame3

|
4 installs
| (0) | Free
Language support for OpenQASM 3.0 (Open Quantum Assembly Language) with syntax highlighting and language server
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

OpenQASM 3.0 Language Support for Visual Studio Code

vscode-qasm icon

This extension provides language support for OpenQASM 3.0 in Visual Studio Code.

Features

  • Syntax Highlighting: Full semantic highlighting for QASM keywords, operators, gates, measurements, and more
  • Language Server: Integrated LSP server for advanced language features
  • Comment Support: Line and block comments
  • Code Formatting: Basic formatting support

Coming Soon:

  • Linting support
  • Auto-completion
  • Smart indentation
  • Additional language server features

Supported Token Types

  • Keywords (OPENQASM, include, gate, measure, etc.)
  • Operators (+, -, *, /, ==, ->, etc.)
  • Numbers and strings
  • Comments (// and /* */)
  • Gates and measurements
  • Registers (qubit, bit, etc.)
  • Builtin functions and constants

Installation

  1. Install the extension from the VSCode marketplace
  2. Open any .qasm file to activate language support

Usage

Create or open a .qasm file:

OPENQASM 3.0;
include "stdgates.inc";

// Initialize qubits
qubit[2] q;
bit[2] c;

// Apply gates
h q[0];
cx q[0], q[1];

// Measure
measure q -> c;

Requirements

  • VSCode 1.60.0 or higher

Contributing

This extension is part of the qasmtools project.

License

Apache License 2.0

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft