Alpha Modules
The alpha tier is now mostly a compatibility layer. Only three research lines remain gated: density functional theory, the machine-learned force field and reaction dynamics. Everything else on this page is core and needs no feature flag.
Module map
| Module | State | What it does |
|---|---|---|
| Density functional theory | gated (alpha-dft) | Kohn-Sham SVWN/PBE with a minimal Gaussian basis |
| Machine-learned force field | gated (alpha-mlff) | Behler-Parrinello descriptors and a small neural network |
| Reaction dynamics | gated (alpha-reaction-dynamics) | Approach frames, CI-NEB images and departure frames |
| ReaxFF | core | Reactive force field with bond orders and analytical gradients |
| Electron-repulsion integrals | core | Obara-Saika recurrences and the Boys function |
| Conformal geometric algebra | core | Motor-based rigid rotations and dihedral refinement |
| Growing String Method | core (alpha-gsm alias) | Reaction path and saddle search |
| Semidefinite relaxation | core | Convex distance-geometry embedding |
| Live molecular dynamics | core (alpha-dynamics-live alias) | Frame-by-frame Verlet/Langevin integration |
| IMD bridge | core | Interactive molecular-dynamics steering |
| Electrical double layer | core | Helmholtz, Gouy-Chapman and Stern models |
| Periodic adapters | core (alpha-periodic-linear alias) | k-meshes, Bloch phases and band integration |
| Kinetics | core (alpha-kinetics alias) | Transition-state theory and microkinetic networks |
| Render bridge | core (alpha-render-bridge alias) | Chart and trajectory payloads plus domain builders |
Validation at a glance
The full report, including the confidence region of every method, is in Scientific validation. The gated modules are summarized here because they are the ones that still need a decision.
| Module | Compared with | Measured separation | Confidence region | Main limitation |
|---|---|---|---|---|
| Density functional theory | PySCF 2.14.0, STO-3G, SVWN/PBE | total energy 7.2e-5 Ha; gap 9.7e-3 eV | 6 small molecules (H₂, H₂O, CH₄, NH₃, N₂, CO) | target is 1e-5 Ha; coulomb_energy is zero; ECP is not fitted; no exact exchange |
| Machine-learned force field | independent NumPy Behler-Parrinello oracle | AEV exact; energy 5.1e-14; force 6.4e-6 | tiny networks; 8 molecules; two parameter sets | no trained production weights; no MD17/SPICE; the ANI engine has no external gate |
| Reaction dynamics | self-consistency and analytic frames | frame and energy invariants only | small 3D paths | no ASE NEB parity for the full path |
The promoted modules keep their detailed gates in the core documentation and in the validation report.
Density functional theory (alpha-dft, gated)
Module: sci_form::dft (feature alpha-dft; F77: dE ≤ 7.2e-5 Ha vs PySCF, gap vs the 1e-5 target)
Density functional theory solver using a minimal Gaussian basis. Supports SVWN (LDA) and PBE (GGA) functionals. For systems up to ~20 atoms in the current implementation.
Rust
use sci_form::dft::{solve_ks_dft, DftConfig, DftMethod};
let conf = sci_form::embed("CCO", 42);
let pos: Vec<[f64;3]> = conf.coords.chunks(3).map(|c| [c[0],c[1],c[2]]).collect();
let config = DftConfig { method: DftMethod::Pbe, max_iterations: 200, ..Default::default() };
let result = solve_ks_dft(&conf.elements, &pos, &config)?;
println!("DFT total energy: {:.6} Ha", result.total_energy);
println!("HOMO: {:.3} eV, LUMO: {:.3} eV, gap: {:.3} eV",
result.homo_energy, result.lumo_energy, result.gap);Nuclear gradient (Rust only)
use sci_form::dft::{ks_nuclear_gradient, DftConfig};
let g = ks_nuclear_gradient(&conf.elements, &pos, &DftConfig::default())?;
// g.gradients: Vec<[f64; 3]> dE/dR in Hartree/Bohr, one triple per atom (positions are in Å)
// g.rms_gradient, g.max_gradient: Hartree/Bohr; g.energy: total energy in HartreeThe gradient is the analytic frozen-density force plus the Pulay term and is validated against the derivative of the converged energy (F80, 3·10⁻⁷ Ha/Bohr on H₂O₂). It is not exposed in Python, WASM or the CLI. See Kohn–Sham DFT for the unit history (Hartree/Bohr, not Hartree/Å).
WASM / TypeScript
import { alpha_compute_dft } from 'sci-form-wasm/alpha';
const result = JSON.parse(alpha_compute_dft(elements_json, coords_json, "pbe"));
console.log(`gap: ${result.gap.toFixed(3)} eV`);Python
from sci_form.alpha import dft_calculate
result = dft_calculate(elements, coords, method="pbe")
print(f"gap: {result.gap:.3f} eV")ReaxFF reactive force field (core)
Module: sci_form::forcefield::reaxff (core since 2026-10-13, F78; alpha::reaxff re-export)
Bond-order-based reactive force field for bond breaking and formation. Includes EEM charge equilibration and analytical gradients for every term (bond orders, bond/angle, over/under-coordination, vdW, Coulomb and the EEM charge response).
Rust
use sci_form::forcefield::reaxff::{compute_reaxff_gradient, ReaxffParams};
let (energy, grad) = compute_reaxff_gradient(&coords_flat, &elements, &ReaxffParams::default_chon())?;
println!("ReaxFF energy: {:.4} kcal/mol", energy);
// grad: [∂E/∂x0, ∂E/∂y0, ∂E/∂z0, ...]WASM / TypeScript
import { alpha_compute_reaxff_gradient, alpha_compute_reaxff_energy } from 'sci-form-wasm/alpha';
const gradResult = JSON.parse(alpha_compute_reaxff_gradient(elements_json, coords_json));
// { energy, gradient, n_atoms }
const energyResult = JSON.parse(alpha_compute_reaxff_energy(elements_json, coords_json));
// { total_energy, bonded, nonbonded, electrostatic, bond_orders }Python
from sci_form.alpha import reaxff_gradient, reaxff_energy
grad = reaxff_gradient(elements, coords) # (energy, gradient)
breakdown = reaxff_energy(elements, coords) # detailed energy componentsParallelization
The analytical gradient avoids the 6·N energy evaluations of central differences and uses the cached EEM inverse for the charge response.
Machine-learned force field (alpha-mlff, gated)
Module: sci_form::mlff (feature alpha-mlff; F79: AEV exact, E 5.1e-14, F 6.4e-6; TorchANI/MD17 gaps)
Machine-learned force field using Atomic Environment Vectors (AEVs) / Behler-Parrinello symmetry functions as descriptors. The AEV computation (compute_aevs) is parallelized with the parallel feature.
Rust
use sci_form::mlff::{compute_aevs, compute_mlff, MlffConfig, SymmetryFunctionParams};
let pos: Vec<[f64;3]> = conf.coords.chunks(3).map(|c| [c[0],c[1],c[2]]).collect();
// Compute AEV descriptors (parallelized with `parallel` feature)
let params = SymmetryFunctionParams::default();
let aevs = compute_aevs(&conf.elements, &pos, ¶ms);
// MLFF energy + forces
let config = MlffConfig::default();
let result = compute_mlff(&conf.elements, &pos, &config)?;
println!("MLFF energy: {:.4} eV", result.energy);WASM / TypeScript
import { alpha_compute_mlff, alpha_compute_aevs } from 'sci-form-wasm/alpha';
const aevResult = JSON.parse(alpha_compute_aevs(elements_json, coords_json, params_json));
// { aevs: [[...], ...], n_atoms, n_radial, n_angular }
const mlffResult = JSON.parse(alpha_compute_mlff(elements_json, coords_json, config_json));
// { energy, forces, atomic_energies }Python
from sci_form.alpha import alpha_compute_aevs, alpha_compute_mlff
aev_result = alpha_compute_aevs(elements, coords)
mlff_result = alpha_compute_mlff(elements, coords)
print(f"MLFF energy: {mlff_result.energy:.4f} eV")Parallelization
compute_aevs outer atom loop: each atom's AEV is fully independent → rayon::par_iter activated by features = ["parallel"]. Scales O(1) per atom with thread count.
Electron-repulsion integrals and Boys function (core)
Module: sci_form::scf::obara_saika (core since 2026-10-14, F80: Boys 5.6e-14, ERI 3.1e-14)
Two-electron repulsion integrals (ERIs) via the Obara-Saika recurrence, and the Boys function alpha-dft and forms the integral engine for HF/DFT calculations.
Rust
use sci_form::scf::obara_saika::{boys_function, eri_ssss, schwarz_bound, ShellPairData};
// Boys function F_n(x)
let f0 = boys_function(0, 2.5); // F_0(2.5)
// Schwarz upper bound for ERI screening
let bound = schwarz_bound(1.2, [0.0, 0.0, 0.0], 0.8, [1.5, 0.0, 0.0]);
// (ss|ss) ERI
let shell_s = Shell { alpha: 1.0, center: [0.0, 0.0, 0.0] };
let eri = eri_ssss(&shell_s, &shell_s, &shell_s, &shell_s);WASM / TypeScript
import { alpha_boys_function, alpha_eri_ssss, alpha_schwarz_bound } from 'sci-form-wasm/alpha';
const F0 = JSON.parse(alpha_boys_function(0, 2.5)).value;
const eri = JSON.parse(alpha_eri_ssss(shellA_json, shellB_json, shellC_json, shellD_json)).eri;Conformal geometric algebra (core)
Module: sci_form::cga (core since 2026-10-14, F81: motors 3.4e-15 vs Rodrigues+clifford)
Conformal Geometric Algebra (CGA) motor rotation for dihedral angle refinement. Provides numerically exact rigid-body rotation of atom subtrees around arbitrary bond axes — avoids the small-angle approximation errors of Cartesian torsion updates.
Rust
use sci_form::cga::{apply_motor_to_subtree, dihedral_motor, refine_torsion_cga};
// Rotate atom subtree around the axis_a→axis_b bond by angle_rad
let motor = dihedral_motor(axis_a, axis_b, angle_rad);
let new_coords = apply_motor_to_subtree(&coords_flat, &subtree_indices, &motor);
// Iterative torsion refinement toward target dihedral
let refined = refine_torsion_cga(&coords_flat, bond_a, bond_b, &subtree_indices, 50);WASM / TypeScript
import { alpha_rotate_dihedral_cga, alpha_refine_torsion_cga } from 'sci-form-wasm/alpha';
const rotated = JSON.parse(alpha_rotate_dihedral_cga(
coords_json, subtree_json, axis_a_json, axis_b_json, angle_rad
));
// { coords: [...], n_rotated }Growing String Method (core, alpha-gsm alias)
Module: sci_form::gsm (core since 2026-11-08; F82 validated: MB barrier 1.6e-3 vs ASE; arc-length fix)
Reaction path interpolation and transition-state search via the Growing String Method. Nodes are added from both reactant and product ends toward the transition state, using UFF/MMFF for node relaxation.
Rust
use sci_form::gsm::{find_transition_state, interpolate_node, GsmConfig};
// Interpolate geometry at parameter t in [0,1]
let interp = interpolate_node(&reactant_coords, &product_coords, 0.5);
// Find transition state
let config = GsmConfig { max_nodes: 11, ..Default::default() };
let ts_result = find_transition_state(&reactant_coords, &product_coords, &mb_energy, &config);
println!("TS energy: {:.4} kcal/mol", ts_result.ts_energy);WASM / TypeScript
import { alpha_gsm_interpolate, alpha_gsm_find_ts } from 'sci-form-wasm/alpha';
const interp = JSON.parse(alpha_gsm_interpolate(reactant_json, product_json, 0.5));
// { coords, n_atoms }
const ts = JSON.parse(alpha_gsm_find_ts(smiles, reactant_json, product_json, config_json));
// { ts_coords, ts_energy, path_energies, converged }Semidefinite relaxation embedding (core)
Module: sci_form::sdr (core since 2026-10-14, F83: embeds 7e-15, beats CVXPY)
Embeds atoms in 3D by solving a semidefinite program (SDP) relaxation of the distance geometry problem. Conceptually eliminates the retry loop of ETKDG for challenging ring systems by finding the global minimum of the distance bounds satisfaction.
Rust
use sci_form::sdr::{sdr_embed, SdrConfig};
let pairs = vec![
(0, 1, 1.5),
(1, 2, 1.5),
// ...
];
let config = SdrConfig { max_iter: 500, tol: 1e-6, ..Default::default() };
let result = sdr_embed(n_atoms, &pairs, &config);
// result.coords — flat [x0,y0,z0,...]WASM / TypeScript
import { alpha_sdr_embed } from 'sci-form-wasm/alpha';
const result = JSON.parse(alpha_sdr_embed(distance_pairs_json, n_atoms, config_json));
// { coords, converged, iterations, final_violation }Live molecular dynamics and IMD bridge (core)
Module: sci_form::dynamics_live (core since 2026-11-08; F84 validated: UFF forces 3.6e-13 vs RDKit; steering → imd core)
A8 (alpha-dynamics-live): Real-time molecular dynamics integration (Verlet / velocity Verlet) with per-frame callbacks — suitable for interactive visualization or frame streaming to a WebSocket.
A9 (alpha-imd): IMD (Interactive Molecular Dynamics) wire-protocol implementation for connecting to running NAMD or GROMACS simulations. Reads force/coordinate streams and sends external forces back.
Both are implicitly included in alpha-imd (A9 depends on A8).
WASM / TypeScript
import { LiveSimulation } from 'sci-form-wasm/alpha';
const sim = new LiveSimulation(elements_json, coords_json, config_json);
sim.on_frame(frameJson => {
const frame = JSON.parse(frameJson);
// frame.coords, frame.step, frame.kinetic_energy, frame.potential_energy
render(frame.coords);
});
sim.start();Electrical double layer (core)
Module: sci_form::edl (core since 2026-10-14, F86: worst 2e-14 vs Grahame/Stern)
Defines serializable electrical double-layer inputs and outputs for electrochemical interface work. Models include Helmholtz (compact-layer only), Gouy-Chapman (diffuse-layer only), and Gouy-Chapman-Stern (coupled compact/diffuse). Contains CPU reference solvers and adapters for CPM, EEQ, and ALPB coupling.
Rust
use sci_form::edl::*;
// Compute individual model profiles
let helmholtz = compute_helmholtz_profile(0.2, &EdlConfig::default())?;
let gc = compute_gouy_chapman_profile(0.2, &EdlConfig::default())?;
let gcs = compute_gcs_profile(0.2, &EdlConfig::default())?;
// Unified dispatcher (auto-selects model from config)
let config = EdlConfig {
model: EdlModel::GouyChapmanStern,
ionic_strength_m: 0.1,
..Default::default()
};
let profile = compute_edl_profile(0.2, &config)?;
println!("Capacitance: {:.3} F/m²", profile.differential_capacitance.total_f_per_m2);
// Scan capacitance over potential range
let scan = scan_edl_capacitance(-0.5, 0.5, 50, &config)?;
for (v, c) in &scan {
println!(" V={:6.3}, C={:10.6}", v, c);
}Python
from sci_form.alpha import (
edl_profile, edl_helmholtz, edl_gouy_chapman, edl_gcs,
edl_capacitance_scan, edl_chart, capacitance_chart
)
# Standard dispatcher
profile = edl_profile(surface_potential_v=0.2, model="gcs", ionic_strength_m=0.1)
print(f"Total drop: {profile.total_interfacial_drop_v:.4f} V")
# Model-specific functions
helmholtz = edl_helmholtz(0.2, ionic_strength_m=0.1)
gc = edl_gouy_chapman(0.2, ionic_strength_m=0.1)
gcs = edl_gcs(0.2, ionic_strength_m=0.1, stern_thickness_a=3.0)
# Capacitance scan
scan_data = edl_capacitance_scan(v_min=-0.5, v_max=0.5, n_points=50)
# Visualization payloads
edl_plot = edl_chart(surface_potential_v=0.2)
cap_plot = capacitance_chart(v_min=-0.5, v_max=0.5, n_points=50)
print(f"EDL chart: {edl_plot.title}, {len(edl_plot.series)} series")WASM / TypeScript
import {
compute_edl_profile,
compute_helmholtz_profile,
compute_gouy_chapman_profile,
compute_gcs_profile,
compute_edl_capacitance_scan,
} from 'sci-form-wasm/alpha';
// Profile computation
const profile = JSON.parse(compute_edl_profile(
0.2, // surface_potential_v
"gcs", // model
0.1, // ionic_strength_m
298.15, // temperature_k
128, // n_points
12.0 // extent_angstrom
));
console.log(`Capacitance: ${profile.capacitance_total_f_per_m2.toFixed(6)} F/m²`);
// Scan
const scan = JSON.parse(compute_edl_capacitance_scan(-0.5, 0.5, 50, 0.1, "gcs"));
console.log(`Scan points: ${scan.length}`);CLI
# Individual model profiles
sci-form edl-helmholtz --potential 0.2 --ionic-strength 0.1 --temperature 298.15
sci-form edl-gouy-chapman --potential 0.2 --ionic-strength 0.1
sci-form edl-gcs --potential 0.2 --ionic-strength 0.1 --stern 3.0
# Standard dispatcher
sci-form edl-profile --potential 0.2 --model gcs --ionic-strength 0.1
# Scan mode
sci-form edl-scan --v-min -0.5 --v-max 0.5 --n-points 50 --model gcsPeriodic linear-scaling adapters (core)
Module: base in sci_form::kmesh (core, F88) + KPM/RandNLA adapters in core periodic_linear
Defines reusable periodic spectral contracts and CPU reference reciprocal-space helpers. Supports Monkhorst-Pack and gamma-centered k-meshes, Bloch-phase factors, k-point integration, band structure, and density-of-states calculations. Integrates with future KPM and randomized low-rank adapters.
Rust
use sci_form::periodic_linear::*;
// Generate k-mesh
let mesh_config = KMeshConfig {
grid: [6, 6, 6],
centering: KMeshCentering::MonkhorstPack,
};
let kmesh = monkhorst_pack_mesh(&mesh_config)?;
println!("n_k = {}, weights sum = {:.6}", kmesh.points.len(),
kmesh.points.iter().map(|p| p.weight).sum::<f64>());
// Build Bloch Hamiltonian at a k-point
let phase = bloch_phase(kmesh.points[0].fractional, [1, 0, 0]);
println!("Bloch phase: {:?}", phase);
// Band structure from assembled operators
let bs = compute_band_structure_adapter(&hamiltonians, &overlaps, kmesh, 10)?;
println!("Band edges: HOMO {} eV, LUMO {} eV, gap {} eV",
bs.homo_edge_ev, bs.lumo_edge_ev, bs.band_edges.indirect_gap_ev);
// BZ integration
let dos_integrated = bz_integrate_scalar(&dos_values, &kmesh_weights);
println!("Integrated DOS: {}", dos_integrated);
// Core chart helpers (no alpha feature required)
let path = sci_form::kmesh::kpath_standard(20);
println!("k-path vertices: {:?}", path.vertices);
// `fermi_surface_from_bands(&blocks, None, 40, 40)` traces the kz = 0 contour
// from the same real-space operator blocks.Python
from sci_form.alpha import kmesh
# Generate k-mesh
mesh = kmesh(grid=[4, 4, 4], centering="monkhorst-pack") # or "gamma"
print(f"n_k = {mesh.n_points}, grid = {mesh.grid}")
print(f"Weights sum: {sum(mesh.weights)}")WASM / TypeScript
import { alpha_periodic_kpath_standard, compute_kmesh } from 'sci-form-wasm/alpha';
// Generate k-mesh
const mesh = JSON.parse(compute_kmesh('[4,4,4]', 'monkhorst-pack'));
console.log(`n_k = ${mesh.n_points}, weights sum = ${mesh.weights.reduce((a,b)=>a+b,0)}`);
// Core k-path helper (no alpha feature required)
const kpath = JSON.parse(alpha_periodic_kpath_standard(20));
console.log(kpath.vertices);CLI
# Generate k-mesh
sci-form kmesh --grid 4 4 4 --centering monkhorst-pack
# Output: {n_points, grid, weights_sum}Kinetics and microkinetic networks (core)
Module: sci_form::kinetics (core since 2026-11-08; F87 validated: Eyring 1.9e-16, equilibrium 8e-16; Cantera gap)
Defines elementary-step, HTST, and microkinetic trace contracts for catalytic and surface-chemistry workflows. Computes transition-state-theory rates, temperature sweeps, and microkinetic steady-state solutions. Integrates with GSM and MBH for barrier estimation.
Rust
use sci_form::kinetics::*;
// Single temperature HTST rate
let step = ElementaryStep {
step_id: "A→B".into(),
activation_free_energy_ev: 0.45,
reaction_free_energy_ev: -0.10,
prefactor_s_inv: None,
};
let state = ThermodynamicState {
temperature_k: 298.15,
pressure_bar: 1.0,
};
let rate = evaluate_htst_rate(&step, state)?;
println!("k_f = {:.3e} s⁻¹, k_r = {:.3e} s⁻¹",
rate.forward_rate_s_inv, rate.reverse_rate_s_inv);
// Temperature sweep
let temperatures = vec![200.0, 300.0, 400.0, 500.0];
let sweep = evaluate_htst_temperature_sweep(&step, &temperatures, 1.0)?;
for result in &sweep {
println!("T={:6.1}K: k_f={:10.3e}, K_eq={:8.4}",
result.state.temperature_k, result.forward_rate_s_inv, result.equilibrium_constant);
}
// Microkinetic network solver
let network = vec![step];
let trace = solve_microkinetic_network(&network, &state)?;
println!("Converged: {}, steps: {}", trace.converged, trace.iteration_count);Python
from sci_form.alpha import htst_rate, htst_temperature_sweep
# Single point
rate = htst_rate(
activation_free_energy_ev=0.45,
reaction_free_energy_ev=-0.10,
temperature_k=298.15
)
print(f"k_f = {rate.forward_rate_s_inv:.3e} s⁻¹")
# Temperature sweep
results = htst_temperature_sweep(
activation_free_energy_ev=0.45,
reaction_free_energy_ev=-0.10,
temperatures_k=[200.0, 300.0, 400.0, 500.0]
)
for r in results:
print(f"T={r['temperature_k']:.1f}K: k_f={r['forward_rate_s_inv']:.3e}")WASM / TypeScript
import { compute_htst_rate, compute_htst_sweep } from 'sci-form-wasm/alpha';
// Single point
const rate = JSON.parse(compute_htst_rate(0.45, -0.10, 298.15));
console.log(`k_f = ${rate.forward_rate_s_inv.toExponential(3)} s⁻¹`);
// Sweep
const temps = [200, 300, 400, 500];
const sweep = JSON.parse(compute_htst_sweep(0.45, -0.10, JSON.stringify(temps)));
sweep.forEach(r => console.log(`T=${r.temperature_k}K: k_f=${r.forward_rate_s_inv.toExponential(3)}`));CLI
# Single rate
sci-form htst-rate --activation 0.45 --reaction -0.10 --temperature 298.15
# Output: {step_id, forward_rate_s_inv, reverse_rate_s_inv, equilibrium_constant, temperature_k}Render bridge (core, alpha-render-bridge alias)
Module: sci_form::render_bridge (core since 2026-11-08, F90); alpha::render_bridge alias
Defines solver-agnostic payloads for charts, traces, and trajectory visualizations. Shared chart generator for EDL profiles, band structures, microkinetic population traces, Arrhenius plots, and capacitance scans. Converts computed results into Arrow RecordBatch format for transport to web frontends or Jupyter notebooks.
Rust
use sci_form::render_bridge::*;
use sci_form::edl::*;
use sci_form::kinetics::*;
// EDL profile chart
let profile = compute_gouy_chapman_profile(0.2, &EdlConfig::default())?;
let chart = edl_profile_chart(&profile);
println!("Chart: {}", chart.title); // "EDL Profile (Gouy-Chapman)"
for series in &chart.series {
println!(" {}: {} points", series.label, series.x.len());
}
// Arrhenius plot from temperature sweep
let step = ElementaryStep { /* ... */ };
let temps = vec![200.0, 300.0, 400.0, 500.0];
let sweep = evaluate_htst_temperature_sweep(&step, &temps, 1.0)?;
let arrhenius = arrhenius_chart(&sweep);
println!("Arrhenius plot ready: {} series", arrhenius.series.len());
// Pack to transportable format
let batch = pack_chart_payload(&chart);
println!("Packed: {} columns", batch.float_columns.len());
// Verify round-trip
let valid = verify_chart_round_trip(&chart, 1e-10);
println!("Round-trip valid: {}", valid);Python
from sci_form.alpha import edl_chart, capacitance_chart
# EDL visualization
plot = edl_chart(surface_potential_v=0.2, ionic_strength_m=0.1)
print(f"Title: {plot.title}")
print(f"Series: {plot.series}")
for s in plot.series:
print(f" - {s.label}: {len(s.x)} points ({s.x_unit} vs {s.y_unit})")
# Capacitance scan visualization
cap_plot = capacitance_chart(v_min=-0.5, v_max=0.5, n_points=50)
print(f"Cap plot: {cap_plot.title}, {len(cap_plot.series)} traces")WASM / TypeScript
import { pack_chart_payload_wasm } from 'sci-form-wasm/alpha';
const chartPayload = {
title: "My EDL Profile",
series: [
{
series_id: "potential",
label: "Electrostatic Potential",
x: [0, 0.1, 0.2, ...],
y: [1.2, 1.1, 0.95, ...],
x_unit: "Å",
y_unit: "V"
}
]
};
const packed = JSON.parse(pack_chart_payload_wasm(JSON.stringify(chartPayload)));
console.log(`Packed chart: ${packed.n_columns} columns, ${packed.column_names.join(', ')}`);Enabling alpha features
Rust
[dependencies]
sci-form = { version = "2.0", features = ["alpha-dft", "alpha-mlff"] }
# All still-gated alpha modules:
sci-form = { version = "2.0", features = [
"alpha-dft", "alpha-mlff", "alpha-reaction-dynamics"
] }
# Alpha + parallelization:
sci-form = { version = "2.0", features = ["alpha-mlff", "parallel"] }The old alpha-gsm, alpha-kinetics, alpha-periodic-linear, alpha-dynamics-live and alpha-render-bridge names are no-op aliases for core modules. They keep old manifests resolving; they do not enable extra code.
WASM / npm
npm install sci-form-wasm// Subpath import — alpha functions only
import { alpha_compute_dft, alpha_compute_reaxff_gradient } from 'sci-form-wasm/alpha';
// Or default import for stable + alpha mixed usage
import init, * as sf from 'sci-form-wasm';
await init();
sf.alpha_compute_dft(elements_json, coords_json, "pbe");Python
# Alpha submodule
from sci_form.alpha import dft_calculate, reaxff_gradient, alpha_compute_mlff
# Or import the whole alpha namespace
import sci_form.alpha as alpha
result = alpha.dft_calculate(elements, coords)Build with all alpha features (WASM)
pnpm wasm:build:all-alpha
# Equivalent to:
bash crates/wasm/build.sh --web-only --web-features "alpha-dft alpha-mlff alpha-reaction-dynamics"
bash crates/wasm/build.sh --web-only --web-features "alpha-dft alpha-mlff alpha-render-bridge alpha-reaction-dynamics"Always build through
crates/wasm/build.sh(directly or through thepnpm wasm:build*scripts). Callingwasm-packby hand regeneratespkg/package.jsonfrom scratch and drops thesnippetsentry thatwasm-bindgen-rayonneeds at runtime, as well as the./alphaand./betasubpath exports.
Reaction dynamics (alpha-reaction-dynamics, gated)
Module: sci_form::alpha::reaction_dynamics
Builds a full 3D reaction path: approach frames (the fragments are approached along the reactive axis), CI-NEB images (the transition state is located by a climbing-image NEB) and departure frames (the product separates from the reactive complex).
This module is not a validated reaction path. The frames are always finite — a divergent path used to produce
NaNand is now rejected — but the CI-NEB frequently does not converge (notesreportsconverged=falseand the final maximum force), and the energies of the images are computed with the reactant topology. Treat the result as a geometric exploration of the path, not as a reaction energy. Thealpha_modules_infoentry point lists the modules the binary contains.
Rust
use sci_form::alpha::reaction_dynamics::{
compute_reaction_dynamics_3d, ReactionDynamics3DConfig,
};
let config = ReactionDynamics3DConfig {
method: "gfn2".to_string(),
n_images: 30,
..Default::default()
};
let result = compute_reaction_dynamics_3d(&["[Cl-]", "CBr"], &["ClC", "[Br-]"], &config)?;
for frame in &result.frames {
println!("{} {} {:.2} kcal/mol", frame.index, frame.phase, frame.energy_kcal_mol);
}Python, WASM / TypeScript and CLI
Not exposed. The 3D reaction path is expensive (the NEB needs 6·N SCF runs per gradient with the GFN2, PM3 and GFN1 backends) and is not a validated reaction path, so it is available only from the Rust core. There is no sci_form.alpha.compute_reaction_dynamics_3d, no sci-form-wasm/alpha entry and no reaction-dynamics3d CLI command. The stable, cheap compute_reaction_dynamics (1D reaction coordinate) and the simplified NEB remain available on every surface. Bindings for the 3D path are future work.
Stability Contract
- Alpha modules may change API shape between minor versions.
- Alpha modules are not covered by the stable-API backward-compatibility promise.
- Each alpha module has integration tests; check
tests/alpha_*for current coverage. - Graduating to beta requires: passing all tests, documented API, basic benchmarks.
- Graduating from beta to stable requires: 2+ real-world validation cases, no known edge-case failures.