Skip to content

All-nuclide NMR registry ​

The existing NMR module already knows 85 NMR-active isotopes and can run a GIAO shielding calculation for a requested nucleus. This page documents the orchestration layer that answers two practical questions:

  1. which isotopes are active for an element?
  2. can the current GIAO route evaluate every element present in this molecule?

Status. Registry and multi-nucleus driver implemented and exposed on the Rust, Python, WASM and CLI surfaces. Quantitative all-element GIAO still depends on basis/ECP coverage; the driver reports unsupported elements explicitly. See the v2.x roadmap.

Feature. alpha-nmr-all (included in alpha-v2).

Registry ​

active_isotopes(z) returns every isotope in NmrNucleus::ALL with that atomic number:

rust
use sci_form::nmr_all::active_isotopes;

let carbon = active_isotopes(6);
assert!(carbon.iter().any(|isotope| isotope.label == "13C"));

active_elements() returns the sorted, deduplicated list of elements that have at least one registered isotope.

Multi-nucleus driver ​

compute_all_nmr finds the unique elements in the molecule, selects the default isotope of each, and calls the existing GIAO route once per element:

rust
use sci_form::nmr_all::compute_all_nmr;

let result = compute_all_nmr(
    &[8, 1, 1],
    &water,
    &sci_form::GiaoNmrConfig::default(),
)?;

for nucleus in &result.nuclei {
    println!("{}: {} shift(s)", nucleus.nucleus, nucleus.chemical_shifts.len());
}
for failure in &result.failures {
    println!("skipped Z={}: {}", failure.element, failure.error);
}

Result ​

TypeMeaning
NmrIsotopeInfoElement, mass number and canonical label
NmrFailureElement, attempted label and error
AllNmrResultSuccessful GIAO results, failures and notes

A failure is explicit. An unsupported element is never reported as a zero shift.

Bindings ​

SurfaceEntry point
CLIsci-form nmr-all <elements> <coords> [--charge] [--multiplicity] [--max-scf-iterations] [--allow-basis-fallback], sci-form nmr-isotopes <element>
WASMactive_nmr_isotopes(element), compute_all_nmr(elements, coords, config_json)
Pythonactive_nmr_isotopes(element), compute_all_nmr(elements, coords, config_json)

Both return JSON. compute_all_nmr reports unsupported elements in failures.

Coverage and limits ​

  • The registry is the existing 85-isotope table; it is not expanded by this module.
  • The GIAO route is closed-shell and STO-3G. Elements without a supported basis appear in failures.
  • One SCF is run per element. This is simple and transparent, not the fastest possible multi-nucleus driver.
  • Quantitative heavy-element shifts need relativistic corrections, ECPs and a larger basis; that is follow-up work.
  • The driver selects the default isotope only. A caller that needs a specific isotope can call compute_giao_nmr directly.
  • nmr-isotopes returns [] for an element with no registered active isotope.

Validation ​

GateObservableResult
Carbon registry¹³C presentyes
Element listsorted and uniqueyes
Water driverH result or explicit failurecovered
Invalid geometrylength mismatchrejected

Malformed geometry, non-finite coordinates and invalid max_scf_iterations, multiplicity or charge are input errors: Python raises ValueError; WASM returns {"error": "..."}. Unsupported elements remain explicit entries in failures, not input errors.

Next steps ​

  1. Reuse one SCF across every nucleus instead of one SCF per element.
  2. Add basis/ECP coverage for the full registry.
  3. Add isotope selection and reference standards per nuclide.
  4. Add relativistic corrections for heavy elements.
  5. Benchmark against ORCA for a multi-element set.

Released under the MIT License.