@nm-lang/language-server
v0.7.0
Published
Language Server Protocol tools for the N/M quantum language.
Maintainers
Readme
@nm-lang/language-server
N/M 0.2.0 Preview Language Server Protocol implementation for editor integrations. The official N/M VS Code extension already bundles this server.
Package 0.7.0 targets the N/M 0.2.0 language contract.
0.7.0 training numerics / Eğitim sayısal işlemleri
Core 0.7.0 adds first-order Hermitian exponential H/time derivatives, finite/analytic block QNG, shared-evaluation gradient covariance, deterministic stateful GD/momentum/Adam/QNG checkpoints and past-covariance shot allocation. Language 0.2.0, explicit permissions and scientific limits remain. Analytic QNG is initially flat/noiseless; sampled checkpoint continuation is rejected. Covariance allocation is a heuristic within the existing total budget.
Türkçe: Matris üstel türevi, blok/analitik QNG, gradyan kovaryansı, deterministik durumlu devam ve önceki kovaryansla ölçüm dağılımı eklendi. İzinler ve sınırlar korunur; kayıt izin vermez, sonlu ölçümle devam desteklenmez ve daha düşük hata garantisi yoktur. Normal editör Run ayrı kalır.
See Quantum AI and the public documentation. Registry availability is separate from this package version.
Install / Kurulum
Requires Node.js 20 or newer. Release checks use Node.js 22.23.1.
npm install --global @nm-lang/language-serverConfigure your LSP client to launch nm-lsp using stdio transport.
An untagged install selects npm's latest channel. To pin this version,
append @0.7.0 to the package name. The N/M language remains
Preview independently of the npm channel. npm installs the matching Core dependency.
Türkçe: LSP istemcinizde çalıştırılacak komutu nm-lsp, iletişim yöntemini stdio
olarak ayarlayın. Resmî VS Code eklentisini kullanıyorsanız ayrıca kurulum gerekmez.
Etiketsiz kurulum npm'in latest kanalını seçer; @0.7.0 ile
sürümü sabitleyebilirsiniz. N/M dili, npm kanalından bağımsız olarak
Önizleme durumundadır.
Editor features / Editör özellikleri
Diagnostics, completion, hover, formatting, navigation, references, rename, signature help, semantic tokens, folding, inlay hints, symbols, code actions, workspace indexing and the N/M test explorer protocol. Standard LSP messages use Content-Length framing; stdout is reserved for protocol messages.
Türkçe: Tanılama, tamamlama, biçimlendirme, gezinme, yeniden adlandırma, çalışma alanı indeksleme ve N/M test keşfi sunar. Doğrudan terminalde başlatıldığında sohbet ekranı açmaz; LSP istemcisinden gelen protokol mesajlarını bekler.
Language options / Dil seçenekleri
Version 0.6.0 adds auto-import of public functions, records and enums from the
same workspace. Apply the primary text edit and additional import edits together.
Alias collisions, private symbols, cycles and stale responses are checked.
During pending/failed disk indexing, current open buffers preserve local
completion without waiting for filesystem scans. Numeric completion/diagnostics
include eigvecsh, bounded QR lstsq and real solve derivatives.
Türkçe: 0.6.0, aynı çalışma alanındaki public fonksiyon ve türleri otomatik içe aktarır. Birincil ve ek import düzenlemelerini birlikte uygulayın. İndeks beklerken açık dosyalarda tamamlama sürer; eski yanıtlar ve private üyeler elenir.
Options are negotiated through initializationOptions.nm.experimental.
The default profile enables classical functions, typed values/Result, module
visibility, parameter groups and compute/apply; explicit false values disable
them. Other experimental features remain opt-in. Capability status, runtime
limits and simulator/hardware evidence boundaries remain separate.
Türkçe: Seçenekler LSP başlangıç mesajıyla aktarılır. Varsayılan profil açıktır; açıkça kapattığınız özellikler kapalı kalır. Diğer deneysel özellikler ayrıca etkinleştirilmelidir.
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.
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. N/M dil sözleşmesi 0.2.0 ve ön izleme olgunluğu korunur.
Release notes · Türkçe sürüm notları
License / Lisans
Free personal, educational and commercial use; source-code rights are reserved. Modification or redistribution of QuantumSoftware-owned package code requires separate permission. Your N/M programs and results remain yours. See LICENSE.txt and NOTICE.txt.
Türkçe: Kullanım ücretsizdir; açık kaynak lisansı verilmez. Paket kodunu değiştirme ve yeniden dağıtma için ayrıca izin gerekir.
