Skip to main content
Q/S — N/MN/M v0.2.0 · Preview

Quantum software should be
explainable.

Write an N/M program, trace its transformation into a circuit, and reproduce every result.

Current boundary: public runs use local simulation, not connected quantum hardware. Product capabilities are explicitly marked stable, preview, or experimental.

Scroll down

From source to local execution evidence

Source/01

  1. 1module home_evidence;
  2. 2@seed(7);
  3. 3fn main() {
  4. 4 let q = qreg[4];
  5. 5 sample 1024 {
  6. 6 H(q[0]);
  7. 7 CNOT(q[0], q[1]);
  8. 8 X(q[2]);
  9. 9 CCNOT(q[0], q[1], q[3]);
  10. 10 measure(q[0]);
  11. 11 measure(q[1]);
  12. 12 measure(q[2]);
  13. 13 measure(q[3]);
  14. 14 }
  15. 15 return q;
  16. 16}

Compile/02

N/M 0.2.0 · compile passed

Diagnostics: 0

Source lines
16
Qubits
4
Depth
4
Gates
4

Circuit/03

Source-matched circuit with 4 qubits, 4 gates and 4 measurementsq[0] |0⟩q[1] |0⟩q[2] |0⟩q[3] |0⟩HMMXMM
12345678

Evidence/04

Backend
statevector
Shots
1024
Seed
7

Finite-shot histogram

0100
470
1111
554

✓ Seeded local result

Not just a run. A traceable experiment.

  • Versioned results
  • Open RFC decisions
  • Explicit capability levels
  • Reproducible execution

How does N/M think?

Prepare
Hadamard creates equal superposition.
Connect
Control q[0], target q[1].
Flip
X sets q[2] to |1⟩.
Condition
Toffoli uses two controls and one target.
Record
Four qubits are measured with separate measure calls.

Transformation: N/M → Circuit

H(q[0]);
CNOT(q[0], q[1]);
X(q[2]);
CCNOT(q[0], q[1], q[3]);
measure(q[0]);
measure(q[1]);
measure(q[2]);
measure(q[3]);

The circuit is generated from the displayed N/M source; the histogram shows a seeded local simulator result from the same source.

Bounded, versioned, reviewable

Algorithm directory

Open the full algorithm gallery →
AlgorithmStatusRangeRuntimeEvidence
Deutsch–Jozsa 0.2 Preview2sim.local/statevector✓ Local record
Bernstein–Vazirani 0.2 Preview4sim.local/statevector✓ Local record
Generic Grover ExperimentalN=2..5sim.local/statevector✓ Local record
Generic Oracles 0.2 Lab ExperimentalDJ/BV≤99sim.local/stabilizer✓ Local record

Execution scope: The circuit and record above explain the product contract; they are not connected-hardware telemetry.

We do not hide the limits.

Check runtime support in the table before using a feature. The N/M manifest tracks stable, preview, and experimental capabilities.

CapabilityStablePreviewExperimental
Parser and syntax diagnosticsStable
Exact statevector runtimeStable
Stabilizer runtimePreview
Multi-file workspacePreview
Generic oraclesExperimental
Measurement-conditioned controlExperimental
Hardware execution interfaceExperimental

N/M, Qiskit, and OpenQASM 3

N/M
Write and run a short quantum program in your browser. Inspect the source, circuit, and measurement results together.
Qiskit
A Python SDK for building circuits, transpiling them for a target, and working with providers.
OpenQASM 3
A language and specification for describing quantum circuits and classical control. N/M exports supported programs in this format.

Read · Design · Experiment

Research with its sources

Open research and technical notes
RecordTitleTypeContextOpen
QEC-NATUREError correction below the surface-code thresholdExternal literatureNature · online 2024 / volume 2025
OPENQASM-3OpenQASM 3 language designExternal literaturearXiv 2021 · journal 2022
NM-RFC-0035Bounded classical functionsN/M design noteNM-RFC-0035 · check capabilities for support
FTQC-EXAMPLESurface-code resource estimateEducational experimentLocal model · approximate resource estimate

External publications belong to their authors. Each N/M experiment identifies its model and source.