Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>N/M Quantum LanguageNew to Visual Studio Code? Get it now.
N/M Quantum Language

N/M Quantum Language

Preview

QuantumSoftware

|
9 installs
| (0) | Free
N/M quantum language tools: diagnostics, navigation, simulation tests and bilingual capability guidance.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

N/M Quantum Language for VS Code

Write, test and debug N/M quantum programs with local simulation. Publisher: QuantumSoftware · Extension ID: quantumsoftware.nm-quantum-language.

Türkçe kullanım rehberi · Explore N/M · Report an issue

This guide accompanies extension 0.7.0, packaged for the regular release channel. Consult the public release notes below for versions currently available in each registry. The bundled N/M language remains at 0.2.0 with preview maturity and uses a local simulator. It does not submit jobs to physical quantum hardware or demonstrate quantum advantage.

0.7.0 runtime

The bundled Core adds matrix-exponential AD, finite/analytic block QNG, covariance, deterministic stateful continuation and covariance-aware allocation. These training operations use the separate Core/CLI host; ordinary editor Run/test/debug is unchanged. Language 0.2.0, saved grants, resource limits and licenses remain.

Get started

Version 0.6.0 adds N/M: Create Project with Bell, parametric-training and numerics scaffolds, plus auto-import for public functions/types from the same workspace. The bundled language server and debugger use Core 0.7.0, including eigvecsh, real solve derivatives and bounded QR lstsq. Project creation uses the editor language for its README, preserves existing files and does not enable experimental settings. Numerics instructions list the required CLI flags. Auto-import adds canonical use lines while retaining the rest of TR/EN source text.

  1. Install N/M Quantum Language by QuantumSoftware using Install in VS Code. A downloaded VSIX can also be installed with Extensions: Install from VSIX....
  2. Open a project you trust. Run N/M: Create Quantum Example from the Command Palette.
  3. Run N/M: Run Current File Tests. The example prepares a balanced qubit and checks both probabilities in the local simulator.
  4. Save as hello.nm, then explore completion, hover, Go to Definition, Find References, Rename and Format Document.
  5. Use N/M: Show Capability Status to check feature maturity and limits.

N/M file icon

Extension 0.4.1 adds a compact blue NM badge beside files such as mert.nm in Explorer and editor tabs, with separate light/dark variants. The SVG is drawn on a 16-pixel grid and does not depend on fonts or external image requests.

The icon uses VS Code's language-default mechanism. The built-in Seti file icon theme supports it. If the icon is hidden, run Preferences: File Icon Theme and choose Seti (Visual Studio Code). A theme can disable language icons or supply its own mapping; the extension does not change your theme or override its existing file associations.

Features

Version 0.4.1 adds the file icon and retains selected-test Run/Debug, per-test CodeLens, N/M: Show Toolchain Session and the Core 0.4.0 numeric routines.

  • Syntax and semantic highlighting, diagnostics, completion, hover and signature help for .nm files.
  • Definitions, references, scoped rename, document/range formatting, quick fixes, symbols, folding and inlay hints.
  • Recorded debugging with source breakpoints, step in/over/out, call stack, typed variables and replay restart.
  • Test Explorer for open N/M documents. Closing a file removes its discovered checks. Run and Debug profiles execute selected top-level checks with shared setup, preserving original source lines. CodeLens offers Run test / Debug test. Open document contents, including unsaved workspace helpers, are used when running tests. Unknown/stale selections fail; directly selecting nested checks is unsupported.
  • N/M: Show Toolchain Session shows the actual extension package, initialized server language/Core versions and LSP contract in separate namespaces. CLI/MCP installations and unavailable server package metadata are explicitly unobserved.
  • Import-aware workspace indexing. Each nm-workspace.json applies to its own subtree; the nearest manifest wins.
  • Bundled log_softmax and cross_entropy_logits routines for classification, with direct softmax JVP/VJP integration in automatic differentiation. Float solve(A, b) and cholesky(A) support matrices of dimension 1–16, with explicit diagnostics for unsupported or invalid inputs. Completion, signatures, hover and syntax highlighting recognize these routines.
  • English/Turkish commands, settings and extension messages. Compiler diagnostics and source identifiers retain language-service wording.
  • N/M: Open User Guide and N/M: Open Release Notes open the public website in your VS Code language (Turkish or English). No program or workspace content is included in these links.

Language profile and settings

New installations enable six parts of the default N/M profile: classicalFunctions, typedClassicalValues, functionResults, moduleVisibility, parameterGroups and computeApply. Previously saved false choices remain off. Other nm.experimental.* settings remain off by default. Preview/experimental limitations still apply; consult N/M: Show Capability Status before use.

The VSIX includes its language server and debug runtime. Desktop VS Code needs no separate Node.js installation. nm.languageServer.path accepts an existing absolute file path for a custom server. An invalid explicit path produces an error rather than silently selecting another server.

N/M settings changes restart the server and reopen documents automatically. If it fails, click the N/M status item or run N/M: Restart Language Server. Details appear in Output > N/M Language.

Run-profile and N/M: Run Current File Tests LSP requests use separate cancellable processes and time out after 60 seconds; other LSP requests time out after 15 seconds. Debug recording preparation uses a cancellable worker with a 15-second deadline. Interactive replay continues until it completes or you stop or cancel the debug session. Indexing is bounded to 5,000 source files, 100 manifests, 1 MB per file and 5 MB total source. The JSON transport has a separate 8 MB limit. Incomplete indexing produces a warning; aggregate limits preserve the previous index.

Restricted Mode and virtual workspaces are unsupported. Workspace trust is required before the server or tests run. Desktop and remote Node extension hosts are supported; this is not a browser-only extension.

Guides

  • Language reference
  • RFC archive
  • Recorded debugger
  • Float math
  • Angle units
  • Parameter groups
  • Compute/apply

0.5.0: Trainable evolution / Eğitilebilir evrim

This package adds scalar-parameter evolution time and Hamiltonian coefficients, fixed gate topology at zero time/weight, and exact-statevector circuit/operator derivatives. The training host supports fixed or adaptive QWC allocation with one total shot budget, separate pilots/held-out confidence evidence, and optional final-cost precision targets. Required-shot estimates are informational; they do not spend extra shots, increase the 4096 limit or certify convergence. These features require the existing explicit Hamiltonian and grouping permissions.

Türkçe: Parametreli evrim süresi/katsayıları, sıfırda korunan kapı yapısı ve kesin statevector devre/operatör türevleri eklenir. Eğitim host'u sabit/adaptif QWC, tek toplam ölçüm bütçesi, ayrı pilot/değerlendirme güven kanıtı ve isteğe bağlı son maliyet hassasiyetini destekler. Ölçüm tahmini bilgi amaçlıdır; ek ölçüm almaz, 4096 sınırını artırmaz veya yakınsamayı belgelemez. Mevcut iki açık izin korunur.

The N/M language contract remains 0.2.0; package and artifact versions are separate. N/M dil sözleşmesi 0.2.0 olarak kalır; paket ve dosya biçimi sürümleri ayrıdır.

The bundled language server/debugger recognizes parameterized evolution and coefficients with original source positions. Finite-shot/adaptive training is an explicit Core/CLI host operation, not an automatic change to ordinary editor Run. CLI: run --train --measurement-allocation adaptive --pilot-shots 8, with both feature flags; optional --target-accuracy 0.5 assesses final-cost precision separately from execution success.

Hamiltonian 0.4.0 / Hamiltonian 0.4.0

Version 0.4.0 includes Hamiltonian evolution and shared-shot QWC expectations. Earlier releases do not include these additions. Both hamiltonianEvolution and measurementGrouping require explicit permission. Source printing and N/M IR v0.5 preserve original source, parser context, seed and shot plans. Imports rebuild with caller permissions; stored flags never grant them. QASM/framework export and source optimization/transpilation reject these semantics.

CLI: --experimental-hamiltonian-evolution, --experimental-measurement-grouping, --from-ir for a saved v0.5 IR, --locale en|tr for diagnostics. MCP: the matching experimentalHamiltonianEvolution / experimentalMeasurementGrouping booleans, nm_export target ir and nm_import_ir. LSP initialization uses initializationOptions.nm.experimental; VS Code uses nm.experimental.hamiltonianEvolution / nm.experimental.measurementGrouping. The editor offers completion/hover, closed-default diagnostics and original source columns for generated gates in the recorded debugger.

Türkçe: 0.4.0 bu geliştirmeleri içerir; iki yeni izin varsayılan kapalıdır. Yazdırma/IR özgün kaynağı ve ortak ölçüm bütçesini korur; içe aktarım kaydı çalıştırma yetkisi saymaz. CLI/MCP/LSP/Monaco/VS Code aynı izinleri taşır; tanılar ve ayarlar TR/EN destekler. TR/EN laboratuvarı sitede erişilebilirdir. 0.4.0 npm ve eklenti dağıtımları yayımlanmıştır; normal yayın kanalı dilin ön izleme olgunluğunu veya deneysel izinlerin varsayılanını değiştirmez.

License

Free to install and use for personal, educational and commercial purposes. QuantumSoftware retains rights to its code and assets; modifying or redistributing them requires separate permission, subject to applicable law and third-party licenses. Your N/M programs and simulation results are not restricted by this license. The Visual Studio Marketplace and Eclipse Open VSX Registry may distribute official packages uploaded through QuantumSoftware's publisher accounts. This does not permit independent third-party republication. See the packaged LICENSE.txt and the registry listing's license information. This is not an open-source license.

Help and updates

  • Installation and troubleshooting
  • Release notes
  • Report a problem

The user guides are public; using the extension does not require access to the source repository.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft