sci-form-wasm 0.13.0 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  **High-performance 3D molecular conformer generation and quantum-chemistry-inspired property computation**, written in pure Rust.
4
4
 
5
- Generates chemically valid 3D coordinates from SMILES strings with RDKit-quality accuracy (ETKDGv2), and provides a full suite of computational chemistry tools: Extended Hückel Theory, electrostatic potentials, density of states, population analysis, molecular alignment, force field energy evaluation (UFF + MMFF94), partial charges, SASA, and materials framework assembly.
5
+ Generates chemically valid 3D coordinates from SMILES strings with RDKit-quality accuracy (ETKDGv2), and provides a full suite of computational chemistry tools: Extended Hückel Theory, semi-empirical quantum chemistry (PM3, PM3(tm), GFN0/GFN1/GFN2-xTB), ab-initio methods (HF-3c, UHF/ROHF, CISD), neural network potentials (ANI-2x, ANI-TM), electrostatic potentials, density of states, population analysis, molecular alignment, force field energy evaluation (UFF + MMFF94), partial charges, SASA, stereochemistry, NMR/IR/UV-Vis spectroscopy, CIF crystallography, and materials framework assembly.
6
6
 
7
7
  Native bindings for **Rust**, **Python**, **TypeScript/JavaScript (WASM)**, and a **cross-platform CLI**.
8
8
 
@@ -21,11 +21,33 @@ Native bindings for **Rust**, **Python**, **TypeScript/JavaScript (WASM)**, and
21
21
 
22
22
  ### Quantum Chemistry (EHT)
23
23
  - **Extended Hückel Theory** — Wolfsberg-Helmholtz Hamiltonian, Löwdin orthogonalization, HOMO/LUMO gaps
24
- - **Mulliken & Löwdin population analysis** — atomic orbital contributions per atom
24
+ - **Mulliken & Löwdin population analysis** — atomic orbital contributions per atom (parallel, Z=1–86 including lanthanides)
25
25
  - **Molecular dipole moment** — bond dipoles + lone-pair contributions in Debye
26
26
  - **Volumetric orbital grids** — STO-3G basis, chunked evaluation for large molecules, marching cubes isosurfaces
27
27
  - **Density of States** — total DOS + per-atom PDOS with Gaussian smearing, JSON export, MSE metric
28
28
 
29
+ ### Semi-Empirical & Tight-Binding Methods
30
+ - **PM3 / PM3(tm)** — NDDO semi-empirical SCF with Gaussian core-core corrections, heat of formation, HOMO/LUMO; transition metal support (Ti–Au)
31
+ - **GFN0/GFN1/GFN2-xTB** — Tight-binding DFT family with Broyden SCC mixing, shell-resolved charges, D3/D4 dispersion, halogen bonding
32
+ - **EEQ Charges** — Extended Electronegativity Equalization with improved Gaussian damping
33
+
34
+ ### Ab-Initio Methods
35
+ - **HF-3c** — Minimal-basis Hartree-Fock with D3-BJ dispersion, gCP, and SRB corrections
36
+ - **UHF / ROHF** — Unrestricted and restricted open-shell Hartree-Fock SCF with configurable level shift and damping
37
+ - **CISD** — Configuration Interaction Singles+Doubles for excited states
38
+ - **AO→MO Integral Transform** — 4-index integral transform with 4-fold symmetry for post-HF methods
39
+
40
+ ### Spectroscopy
41
+ - **UV-Vis** — sTDA-xTB vertical excitations, Gaussian/Lorentzian broadening
42
+ - **IR** — Numerical Hessian vibrational analysis, dipole intensities, thermochemistry (RRHO), peak assignment
43
+ - **NMR** — Chemical shifts via HOSE codes, J-coupling (Karplus 2J–5J including long-range), ensemble averaging
44
+
45
+ ### Machine Learning
46
+ - **ANI-2x / ANI-TM** — Neural network potentials with analytical gradients (24 elements including transition metals)
47
+ - **ML Properties** — LogP, molar refractivity, solubility, Lipinski Ro5, druglikeness
48
+ - **3D Descriptors** — WHIM, RDF, GETAWAY molecular descriptors
49
+ - **ML Models** — Decision Trees, Random Forest, Gradient Boosting with cross-validation
50
+
29
51
  ### Experimental RHF Engine
30
52
  - **Isolated `experimental_2` namespace** — next-generation Roothaan-Hall RHF engine without affecting stable APIs
31
53
  - **Analytical Gaussian integrals** — overlap, kinetic, nuclear attraction, core Hamiltonian, and two-electron ERIs
@@ -59,11 +81,13 @@ Native bindings for **Rust**, **Python**, **TypeScript/JavaScript (WASM)**, and
59
81
  - **Periodic unit cells** — lattice parameters (a, b, c, α, β, γ) to Cartesian tensor
60
82
  - **Secondary Building Units (SBUs)** — node/linker topology with coordination sites
61
83
  - **Framework assembly** — MOF-type crystal structure generation from SBUs + topology
84
+ - **230 space groups** — full ITC space group library with equivalent position generation
85
+ - **CIF import/export** — parse and write CIF 1.1 crystallographic files with uncertainty notation support
62
86
 
63
87
  ### Platform
64
88
  - **Multi-platform** — Rust lib, Python (PyO3), TypeScript/JS (WASM), CLI (Linux/macOS/Windows)
65
89
  - **Zero runtime dependencies** — pure Rust, no C++ toolchain needed
66
- - **SMILES + SMARTS** — full parser and substructure matcher; 60+ bracket elements
90
+ - **SMILES, SMARTS, SMIRKS** — full parser, substructure matcher, and reaction transforms (multi-component); 60+ bracket elements
67
91
 
68
92
  ---
69
93
 
@@ -73,9 +97,9 @@ Native bindings for **Rust**, **Python**, **TypeScript/JavaScript (WASM)**, and
73
97
 
74
98
  ```toml
75
99
  [dependencies]
76
- sci-form = "0.2"
100
+ sci-form = "0.13"
77
101
  # For parallel batch + ESP:
78
- sci-form = { version = "0.2", features = ["parallel"] }
102
+ sci-form = { version = "0.13", features = ["parallel"] }
79
103
  ```
80
104
 
81
105
  ```rust
@@ -321,7 +345,14 @@ More detailed coverage notes live in [TESTING.md](TESTING.md), and the broader p
321
345
  | `sci_form::compute_esp` | Electrostatic potential grid (Mulliken charges) |
322
346
  | `sci_form::compute_dos` | Density of states + PDOS (EHT orbital energies) |
323
347
  | `sci_form::compute_rmsd` | RMSD after Kabsch alignment |
348
+ | `sci_form::compute_pm3` | PM3/PM3(tm) semi-empirical SCF |
349
+ | `sci_form::compute_xtb` | GFN0-xTB tight-binding with Broyden SCC |
350
+ | `sci_form::compute_uhf` | Unrestricted Hartree-Fock SCF |
351
+ | `sci_form::compute_rohf` | Restricted open-shell Hartree-Fock SCF |
324
352
  | `sci_form::compute_uff_energy` | UFF force field energy evaluation |
353
+ | `sci_form::compute_mmff94_energy` | MMFF94 force field energy evaluation |
354
+ | `sci_form::parse_cif` | CIF crystallographic file import |
355
+ | `sci_form::write_cif` | CIF crystallographic file export |
325
356
  | `sci_form::create_unit_cell` | Periodic unit cell from lattice parameters |
326
357
  | `sci_form::assemble_framework` | MOF-type framework assembly from SBUs |
327
358
 
@@ -330,13 +361,23 @@ More detailed coverage notes live in [TESTING.md](TESTING.md), and the broader p
330
361
  | Module Path | Key API |
331
362
  |-------------|---------|
332
363
  | `sci_form::eht` | `solve_eht()`, `EhtResult`, `evaluate_orbital_on_grid_chunked()`, `marching_cubes()` |
364
+ | `sci_form::pm3` | `compute_pm3()`, PM3/PM3(tm) SCF, Gaussian core-core corrections |
365
+ | `sci_form::xtb` | `compute_xtb()`, GFN0 SCC with Broyden mixing; `xtb::gfn1`, `xtb::gfn2` |
366
+ | `sci_form::scf::uhf` | `run_uhf()`, `run_rohf()`, open-shell SCF with spin contamination analysis |
367
+ | `sci_form::hf` | `solve_hf3c()`, CISD, `mo_transform::ao_to_mo_transform()` |
333
368
  | `sci_form::esp` | `compute_esp_grid_parallel()`, `esp_color_map()`, `esp_grid_to_colors()`, `export_cube()`, `read_cube()` |
334
369
  | `sci_form::dos` | `compute_dos()`, `compute_pdos()`, `dos_mse()`, `export_dos_json()` |
335
370
  | `sci_form::alignment` | `align_coordinates()`, `align_quaternion()`, `compute_rmsd()` |
336
371
  | `sci_form::forcefield` | `build_uff_force_field()`, `Mmff94Builder::build()` |
337
372
  | `sci_form::charges::gasteiger` | `gasteiger_marsili_charges()` |
373
+ | `sci_form::charges_eeq` | `compute_eeq_charges()` — improved Gaussian damping |
338
374
  | `sci_form::surface::sasa` | `compute_sasa()` |
339
375
  | `sci_form::materials` | `UnitCell`, `Sbu`, `Topology`, `assemble_framework()` |
376
+ | `sci_form::materials::cif` | `parse_cif()`, `write_cif()`, `CifStructure`, `CifAtomSite` |
377
+ | `sci_form::nmr` | `predict_nmr_shifts()`, `predict_j_couplings()` (2J–5J) |
378
+ | `sci_form::smirks` | `apply_smirks()`, `apply_smirks_multi()`, `parse_smirks()` |
379
+ | `sci_form::stereo` | `analyze_stereo()` — R/S, E/Z, helical, atropisomeric |
380
+ | `sci_form::population` | `compute_population()`, `compute_bond_orders()`, parallel variants |
340
381
  | `sci_form::transport` | `pack_batch_arrow()`, `ChunkedIterator`, `WorkerTask` |
341
382
 
342
383
  ---
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "sci-form-wasm",
3
3
  "type": "module",
4
4
  "description": "WASM/TypeScript bindings for high-performance 3D molecular conformer generation",
5
- "version": "0.13.0",
5
+ "version": "0.14.2",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -154,6 +154,18 @@ export function alpha_compute_reaxff_gradient(elements_json: string, coords_flat
154
154
  */
155
155
  export function alpha_eri_ssss(shell_a_json: string, shell_b_json: string, shell_c_json: string, shell_d_json: string): string;
156
156
 
157
+ /**
158
+ * Plan which GSM backends are available for a molecule.
159
+ */
160
+ export function alpha_gsm_backend_plan(smiles: string): string;
161
+
162
+ /**
163
+ * Compare one or more GSM backends on the same geometry.
164
+ *
165
+ * `methods_json` can be `[]` to evaluate the full backend list.
166
+ */
167
+ export function alpha_gsm_compare_backends(smiles: string, coords_flat_json: string, methods_json: string): string;
168
+
157
169
  /**
158
170
  * Grow the reaction string and find the transition state node between
159
171
  * reactant and product geometries using UFF energy.
@@ -166,6 +178,12 @@ export function alpha_eri_ssss(shell_a_json: string, shell_b_json: string, shell
166
178
  */
167
179
  export function alpha_gsm_find_ts(smiles: string, reactant_coords_json: string, product_coords_json: string, config_json: string): string;
168
180
 
181
+ /**
182
+ * Grow the reaction string and find the transition state node between
183
+ * reactant and product geometries using the selected backend.
184
+ */
185
+ export function alpha_gsm_find_ts_with_method(smiles: string, reactant_coords_json: string, product_coords_json: string, config_json: string, method: string): string;
186
+
169
187
  /**
170
188
  * Interpolate a node along the reaction path at parameter t ∈ [0, 1].
171
189
  *
@@ -240,6 +258,22 @@ export function analyze_graph_features(smiles: string): string;
240
258
  */
241
259
  export function analyze_stereo(smiles: string, coords_flat: string): string;
242
260
 
261
+ /**
262
+ * Apply a SMIRKS reaction transform to a molecule.
263
+ *
264
+ * Returns JSON `SmirksResult`:
265
+ * ```json
266
+ * {
267
+ * "products": ["[C](=O)[O-]"],
268
+ * "atom_mapping": {0: 0, 1: 1},
269
+ * "n_transforms": 1,
270
+ * "success": true,
271
+ * "messages": []
272
+ * }
273
+ * ```
274
+ */
275
+ export function apply_smirks(smirks: string, smiles: string): string;
276
+
243
277
  /**
244
278
  * Assemble a framework crystal structure.
245
279
  *
@@ -502,6 +536,16 @@ export function compute_md_trajectory(smiles: string, coords_json: string, n_ste
502
536
  */
503
537
  export function compute_md_trajectory_nvt(smiles: string, coords_json: string, n_steps: number, dt_fs: number, seed: number, target_temp_k: number, thermostat_tau_fs: number): string;
504
538
 
539
+ /**
540
+ * Run velocity-Verlet MD with a configurable energy backend.
541
+ *
542
+ * `backend`: `"uff"`, `"pm3"`, `"xtb"`.
543
+ * `target_temp_k`: if > 0, enables Berendsen thermostat with 100 fs coupling.
544
+ *
545
+ * Returns JSON `MdTrajectory`.
546
+ */
547
+ export function compute_md_trajectory_with_method(smiles: string, coords_json: string, elements_json: string, n_steps: number, dt_fs: number, seed: number, target_temp_k: number, backend: string): string;
548
+
505
549
  /**
506
550
  * Predict molecular properties using ML proxy models.
507
551
  */
@@ -517,6 +561,15 @@ export function compute_mmff94_energy(smiles: string, coords: string): string;
517
561
  */
518
562
  export function compute_molecular_descriptors(smiles: string): string;
519
563
 
564
+ /**
565
+ * Build a simplified NEB path with a configurable energy backend.
566
+ *
567
+ * `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
568
+ *
569
+ * Returns JSON `NebPathResult` with images, energies, TS info.
570
+ */
571
+ export function compute_neb_path_with_method(smiles: string, start_coords_json: string, end_coords_json: string, n_images: number, n_iter: number, spring_k: number, step_size: number, method: string): string;
572
+
520
573
  /**
521
574
  * Generate a complete NMR spectrum.
522
575
  *
@@ -737,8 +790,33 @@ export function initThreadPool(num_threads: number): Promise<any>;
737
790
 
738
791
  export function init_webgpu(): Promise<string>;
739
792
 
793
+ /**
794
+ * List available NEB backend methods for a given set of elements.
795
+ *
796
+ * Returns JSON array of `{"method": string, "available": bool, "note": string}`.
797
+ */
798
+ export function list_neb_backends(elements_json: string): string;
799
+
740
800
  export function merge_experiment_results_wasm(): string;
741
801
 
802
+ /**
803
+ * Evaluate the energy (kcal/mol) and gradient of a geometry with a given NEB backend.
804
+ *
805
+ * `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
806
+ *
807
+ * Returns JSON `{"energy": <f64>, "gradient": [<f64>...], "method": "<str>"}`.
808
+ */
809
+ export function neb_energy_and_gradient(method: string, smiles: string, coords_json: string): string;
810
+
811
+ /**
812
+ * Evaluate the energy (kcal/mol) of a geometry with a given NEB backend.
813
+ *
814
+ * `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
815
+ *
816
+ * Returns JSON `{"energy": <f64>, "method": "<str>"}`.
817
+ */
818
+ export function neb_single_point_energy(method: string, smiles: string, coords_json: string): string;
819
+
742
820
  /**
743
821
  * Pack a batch of conformer results into Arrow-compatible columnar format.
744
822
  */
@@ -749,6 +827,22 @@ export function pack_batch_arrow(results_json: string): string;
749
827
  */
750
828
  export function parse_smiles(smiles: string): string;
751
829
 
830
+ /**
831
+ * Parse a SMIRKS reaction transform string.
832
+ *
833
+ * Returns JSON `SmirksTransform`:
834
+ * ```json
835
+ * {
836
+ * "reactant_smarts": ["[C:1](=O)[OH:2]"],
837
+ * "product_smarts": ["[C:1](=O)[O-:2]"],
838
+ * "atom_map": {1: 1, 2: 2},
839
+ * "bond_changes": [...],
840
+ * "smirks": "[C:1](=O)[OH:2]>>[C:1](=O)[O-:2]"
841
+ * }
842
+ * ```
843
+ */
844
+ export function parse_smirks(smirks: string): string;
845
+
752
846
  export function pipeline_validator_wasm(): boolean;
753
847
 
754
848
  /**
@@ -829,13 +923,19 @@ export interface InitOutput {
829
923
  readonly eht_density_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
830
924
  readonly eht_orbital_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
831
925
  readonly eht_density_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
832
- readonly init_webgpu: () => number;
833
- readonly webgpu_status: (a: number) => void;
834
- readonly compute_esp: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
835
- readonly compute_esp_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
836
- readonly compute_esp_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
837
- readonly compute_esp_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
838
- readonly compute_esp_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
926
+ readonly create_unit_cell: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
927
+ readonly assemble_framework: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
928
+ readonly compute_frontier_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
929
+ readonly compute_fukui_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
930
+ readonly compute_reactivity_ranking: (a: number, b: number, c: number, d: number, e: number) => void;
931
+ readonly compute_uv_vis_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
932
+ readonly analyze_graph_features: (a: number, b: number, c: number) => void;
933
+ readonly compute_topology: (a: number, b: number, c: number, d: number, e: number) => void;
934
+ readonly compute_sssr: (a: number, b: number, c: number) => void;
935
+ readonly compute_ecfp: (a: number, b: number, c: number, d: number, e: number) => void;
936
+ readonly compute_tanimoto: (a: number, b: number, c: number, d: number, e: number) => void;
937
+ readonly butina_cluster: (a: number, b: number, c: number, d: number) => void;
938
+ readonly compute_rmsd_matrix: (a: number, b: number, c: number) => void;
839
939
  readonly __wbg_livesimulation_free: (a: number, b: number) => void;
840
940
  readonly livesimulation_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
841
941
  readonly livesimulation_step: (a: number, b: number, c: number) => void;
@@ -850,6 +950,24 @@ export interface InitOutput {
850
950
  readonly livesimulation_kinetic_energy: (a: number) => number;
851
951
  readonly livesimulation_step_count: (a: number) => number;
852
952
  readonly livesimulation_set_temperature: (a: number, b: number, c: bigint) => void;
953
+ readonly alpha_compute_dft: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
954
+ readonly alpha_compute_reaxff_gradient: (a: number, b: number, c: number, d: number, e: number) => void;
955
+ readonly alpha_compute_reaxff_energy: (a: number, b: number, c: number, d: number, e: number) => void;
956
+ readonly alpha_compute_eem_charges: (a: number, b: number, c: number, d: number, e: number) => void;
957
+ readonly alpha_compute_mlff: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
958
+ readonly alpha_compute_aevs: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
959
+ readonly alpha_boys_function: (a: number, b: number, c: number) => void;
960
+ readonly alpha_eri_ssss: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
961
+ readonly alpha_schwarz_bound: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
962
+ readonly alpha_rotate_dihedral_cga: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
963
+ readonly alpha_refine_torsion_cga: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
964
+ readonly alpha_gsm_interpolate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
965
+ readonly alpha_gsm_backend_plan: (a: number, b: number, c: number) => void;
966
+ readonly alpha_gsm_compare_backends: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
967
+ readonly alpha_gsm_find_ts: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
968
+ readonly alpha_gsm_find_ts_with_method: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
969
+ readonly alpha_sdr_embed: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
970
+ readonly alpha_modules_info: (a: number) => void;
853
971
  readonly compute_pm3: (a: number, b: number, c: number, d: number, e: number) => void;
854
972
  readonly compute_xtb: (a: number, b: number, c: number, d: number, e: number) => void;
855
973
  readonly compute_gfn1: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -858,8 +976,12 @@ export interface InitOutput {
858
976
  readonly compute_hf3c_custom: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
859
977
  readonly compute_ani: (a: number, b: number, c: number, d: number, e: number) => void;
860
978
  readonly compute_dft: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
861
- readonly compute_orbital_mesh: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
862
- readonly compute_orbital_mesh_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number;
979
+ readonly compute_uff_energy: (a: number, b: number, c: number, d: number, e: number) => void;
980
+ readonly compute_uff_energy_with_aromatic_heuristics: (a: number, b: number, c: number, d: number, e: number) => void;
981
+ readonly compute_mmff94_energy: (a: number, b: number, c: number, d: number, e: number) => void;
982
+ readonly compute_empirical_pka: (a: number, b: number, c: number) => void;
983
+ readonly compute_ml_properties: (a: number, b: number, c: number) => void;
984
+ readonly compute_molecular_descriptors: (a: number, b: number, c: number) => void;
863
985
  readonly compute_charges: (a: number, b: number, c: number) => void;
864
986
  readonly compute_sasa: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
865
987
  readonly compute_population: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -878,6 +1000,13 @@ export interface InitOutput {
878
1000
  readonly compute_nmr_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
879
1001
  readonly compute_nmr_spectrum_with_coords: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
880
1002
  readonly compute_hose_codes: (a: number, b: number, c: number, d: number) => void;
1003
+ readonly pack_batch_arrow: (a: number, b: number, c: number) => void;
1004
+ readonly split_worker_tasks: (a: number, b: number, c: number, d: number, e: number) => void;
1005
+ readonly estimate_workers: (a: number, b: number) => number;
1006
+ readonly version: (a: number) => void;
1007
+ readonly system_capabilities: (a: number, b: number, c: number) => void;
1008
+ readonly system_method_plan: (a: number, b: number, c: number) => void;
1009
+ readonly compare_methods: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
881
1010
  readonly beta_compute_kpm_dos: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
882
1011
  readonly beta_compute_kpm_mulliken: (a: number, b: number, c: number, d: number, e: number) => void;
883
1012
  readonly beta_compute_mbh_frequencies: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
@@ -886,34 +1015,6 @@ export interface InitOutput {
886
1015
  readonly beta_psd_projection: (a: number, b: number, c: number, d: number) => void;
887
1016
  readonly beta_compute_cpm_charges: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
888
1017
  readonly beta_modules_info: (a: number) => void;
889
- readonly alpha_compute_dft: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
890
- readonly alpha_compute_reaxff_gradient: (a: number, b: number, c: number, d: number, e: number) => void;
891
- readonly alpha_compute_reaxff_energy: (a: number, b: number, c: number, d: number, e: number) => void;
892
- readonly alpha_compute_eem_charges: (a: number, b: number, c: number, d: number, e: number) => void;
893
- readonly alpha_compute_mlff: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
894
- readonly alpha_compute_aevs: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
895
- readonly alpha_boys_function: (a: number, b: number, c: number) => void;
896
- readonly alpha_eri_ssss: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
897
- readonly alpha_schwarz_bound: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
898
- readonly alpha_rotate_dihedral_cga: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
899
- readonly alpha_refine_torsion_cga: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
900
- readonly alpha_gsm_interpolate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
901
- readonly alpha_gsm_find_ts: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
902
- readonly alpha_sdr_embed: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
903
- readonly alpha_modules_info: (a: number) => void;
904
- readonly compute_uff_energy: (a: number, b: number, c: number, d: number, e: number) => void;
905
- readonly compute_uff_energy_with_aromatic_heuristics: (a: number, b: number, c: number, d: number, e: number) => void;
906
- readonly compute_mmff94_energy: (a: number, b: number, c: number, d: number, e: number) => void;
907
- readonly compute_empirical_pka: (a: number, b: number, c: number) => void;
908
- readonly compute_sssr: (a: number, b: number, c: number) => void;
909
- readonly compute_ecfp: (a: number, b: number, c: number, d: number, e: number) => void;
910
- readonly compute_tanimoto: (a: number, b: number, c: number, d: number, e: number) => void;
911
- readonly butina_cluster: (a: number, b: number, c: number, d: number) => void;
912
- readonly compute_rmsd_matrix: (a: number, b: number, c: number) => void;
913
- readonly version: (a: number) => void;
914
- readonly system_capabilities: (a: number, b: number, c: number) => void;
915
- readonly system_method_plan: (a: number, b: number, c: number) => void;
916
- readonly compare_methods: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
917
1018
  readonly compute_md_trajectory: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
918
1019
  readonly compute_md_trajectory_nvt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
919
1020
  readonly compute_simplified_neb_path: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
@@ -923,6 +1024,11 @@ export interface InitOutput {
923
1024
  readonly embed_coords_typed: (a: number, b: number, c: number) => number;
924
1025
  readonly embed_batch: (a: number, b: number, c: number, d: number) => void;
925
1026
  readonly parse_smiles: (a: number, b: number, c: number) => void;
1027
+ readonly compute_esp: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
1028
+ readonly compute_esp_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
1029
+ readonly compute_esp_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
1030
+ readonly compute_esp_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
1031
+ readonly compute_esp_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
926
1032
  readonly chart_to_json_wasm: (a: number) => void;
927
1033
  readonly chart_from_json_wasm: (a: number, b: number, c: number) => void;
928
1034
  readonly validate_chart_schema_wasm: (a: number, b: number) => number;
@@ -934,22 +1040,20 @@ export interface InitOutput {
934
1040
  readonly report_generator_wasm: (a: number) => void;
935
1041
  readonly pipeline_validator_wasm: () => number;
936
1042
  readonly cache_results_wasm: (a: number) => void;
937
- readonly create_unit_cell: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
938
- readonly assemble_framework: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
939
- readonly compute_ml_properties: (a: number, b: number, c: number) => void;
940
- readonly compute_molecular_descriptors: (a: number, b: number, c: number) => void;
941
- readonly compute_frontier_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
942
- readonly compute_fukui_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
943
- readonly compute_reactivity_ranking: (a: number, b: number, c: number, d: number, e: number) => void;
944
- readonly compute_uv_vis_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
945
- readonly analyze_graph_features: (a: number, b: number, c: number) => void;
946
- readonly compute_topology: (a: number, b: number, c: number, d: number, e: number) => void;
1043
+ readonly init_webgpu: () => number;
1044
+ readonly webgpu_status: (a: number) => void;
1045
+ readonly compute_orbital_mesh: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
1046
+ readonly compute_orbital_mesh_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number;
1047
+ readonly parse_smirks: (a: number, b: number, c: number) => void;
1048
+ readonly apply_smirks: (a: number, b: number, c: number, d: number, e: number) => void;
1049
+ readonly compute_neb_path_with_method: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
1050
+ readonly neb_single_point_energy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
1051
+ readonly neb_energy_and_gradient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
1052
+ readonly compute_md_trajectory_with_method: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
1053
+ readonly list_neb_backends: (a: number, b: number, c: number) => void;
947
1054
  readonly compute_nonpolar_solvation: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
948
1055
  readonly compute_gb_solvation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
949
1056
  readonly analyze_stereo: (a: number, b: number, c: number, d: number, e: number) => void;
950
- readonly pack_batch_arrow: (a: number, b: number, c: number) => void;
951
- readonly split_worker_tasks: (a: number, b: number, c: number, d: number, e: number) => void;
952
- readonly estimate_workers: (a: number, b: number) => number;
953
1057
  readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
954
1058
  readonly wbg_rayon_poolbuilder_numThreads: (a: number) => number;
955
1059
  readonly wbg_rayon_poolbuilder_receiver: (a: number) => number;
@@ -957,11 +1061,11 @@ export interface InitOutput {
957
1061
  readonly initThreadPool: (a: number) => number;
958
1062
  readonly wbg_rayon_start_worker: (a: number) => void;
959
1063
  readonly validate_experimental_result_wasm: () => number;
960
- readonly __wasm_bindgen_func_elem_2827: (a: number, b: number) => void;
961
- readonly __wasm_bindgen_func_elem_661: (a: number, b: number, c: number, d: number) => void;
962
- readonly __wasm_bindgen_func_elem_575: (a: number, b: number, c: number, d: number) => void;
963
- readonly __wasm_bindgen_func_elem_2833: (a: number, b: number, c: number) => void;
964
- readonly __wasm_bindgen_func_elem_2833_2: (a: number, b: number, c: number) => void;
1064
+ readonly __wasm_bindgen_func_elem_2936: (a: number, b: number) => void;
1065
+ readonly __wasm_bindgen_func_elem_718: (a: number, b: number, c: number, d: number) => void;
1066
+ readonly __wasm_bindgen_func_elem_632: (a: number, b: number, c: number, d: number) => void;
1067
+ readonly __wasm_bindgen_func_elem_2942: (a: number, b: number, c: number) => void;
1068
+ readonly __wasm_bindgen_func_elem_2942_2: (a: number, b: number, c: number) => void;
965
1069
  readonly memory: WebAssembly.Memory;
966
1070
  readonly __wbindgen_export: (a: number, b: number) => number;
967
1071
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
package/sci_form_wasm.js CHANGED
@@ -437,6 +437,62 @@ export function alpha_eri_ssss(shell_a_json, shell_b_json, shell_c_json, shell_d
437
437
  }
438
438
  }
439
439
 
440
+ /**
441
+ * Plan which GSM backends are available for a molecule.
442
+ * @param {string} smiles
443
+ * @returns {string}
444
+ */
445
+ export function alpha_gsm_backend_plan(smiles) {
446
+ let deferred2_0;
447
+ let deferred2_1;
448
+ try {
449
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
450
+ const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
451
+ const len0 = WASM_VECTOR_LEN;
452
+ wasm.alpha_gsm_backend_plan(retptr, ptr0, len0);
453
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
454
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
455
+ deferred2_0 = r0;
456
+ deferred2_1 = r1;
457
+ return getStringFromWasm0(r0, r1);
458
+ } finally {
459
+ wasm.__wbindgen_add_to_stack_pointer(16);
460
+ wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
461
+ }
462
+ }
463
+
464
+ /**
465
+ * Compare one or more GSM backends on the same geometry.
466
+ *
467
+ * `methods_json` can be `[]` to evaluate the full backend list.
468
+ * @param {string} smiles
469
+ * @param {string} coords_flat_json
470
+ * @param {string} methods_json
471
+ * @returns {string}
472
+ */
473
+ export function alpha_gsm_compare_backends(smiles, coords_flat_json, methods_json) {
474
+ let deferred4_0;
475
+ let deferred4_1;
476
+ try {
477
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
478
+ const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
479
+ const len0 = WASM_VECTOR_LEN;
480
+ const ptr1 = passStringToWasm0(coords_flat_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
481
+ const len1 = WASM_VECTOR_LEN;
482
+ const ptr2 = passStringToWasm0(methods_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
483
+ const len2 = WASM_VECTOR_LEN;
484
+ wasm.alpha_gsm_compare_backends(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
485
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
486
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
487
+ deferred4_0 = r0;
488
+ deferred4_1 = r1;
489
+ return getStringFromWasm0(r0, r1);
490
+ } finally {
491
+ wasm.__wbindgen_add_to_stack_pointer(16);
492
+ wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
493
+ }
494
+ }
495
+
440
496
  /**
441
497
  * Grow the reaction string and find the transition state node between
442
498
  * reactant and product geometries using UFF energy.
@@ -477,6 +533,43 @@ export function alpha_gsm_find_ts(smiles, reactant_coords_json, product_coords_j
477
533
  }
478
534
  }
479
535
 
536
+ /**
537
+ * Grow the reaction string and find the transition state node between
538
+ * reactant and product geometries using the selected backend.
539
+ * @param {string} smiles
540
+ * @param {string} reactant_coords_json
541
+ * @param {string} product_coords_json
542
+ * @param {string} config_json
543
+ * @param {string} method
544
+ * @returns {string}
545
+ */
546
+ export function alpha_gsm_find_ts_with_method(smiles, reactant_coords_json, product_coords_json, config_json, method) {
547
+ let deferred6_0;
548
+ let deferred6_1;
549
+ try {
550
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
551
+ const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
552
+ const len0 = WASM_VECTOR_LEN;
553
+ const ptr1 = passStringToWasm0(reactant_coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
554
+ const len1 = WASM_VECTOR_LEN;
555
+ const ptr2 = passStringToWasm0(product_coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
556
+ const len2 = WASM_VECTOR_LEN;
557
+ const ptr3 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
558
+ const len3 = WASM_VECTOR_LEN;
559
+ const ptr4 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
560
+ const len4 = WASM_VECTOR_LEN;
561
+ wasm.alpha_gsm_find_ts_with_method(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
562
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
563
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
564
+ deferred6_0 = r0;
565
+ deferred6_1 = r1;
566
+ return getStringFromWasm0(r0, r1);
567
+ } finally {
568
+ wasm.__wbindgen_add_to_stack_pointer(16);
569
+ wasm.__wbindgen_export4(deferred6_0, deferred6_1, 1);
570
+ }
571
+ }
572
+
480
573
  /**
481
574
  * Interpolate a node along the reaction path at parameter t ∈ [0, 1].
482
575
  *
@@ -736,6 +829,44 @@ export function analyze_stereo(smiles, coords_flat) {
736
829
  }
737
830
  }
738
831
 
832
+ /**
833
+ * Apply a SMIRKS reaction transform to a molecule.
834
+ *
835
+ * Returns JSON `SmirksResult`:
836
+ * ```json
837
+ * {
838
+ * "products": ["[C](=O)[O-]"],
839
+ * "atom_mapping": {0: 0, 1: 1},
840
+ * "n_transforms": 1,
841
+ * "success": true,
842
+ * "messages": []
843
+ * }
844
+ * ```
845
+ * @param {string} smirks
846
+ * @param {string} smiles
847
+ * @returns {string}
848
+ */
849
+ export function apply_smirks(smirks, smiles) {
850
+ let deferred3_0;
851
+ let deferred3_1;
852
+ try {
853
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
854
+ const ptr0 = passStringToWasm0(smirks, wasm.__wbindgen_export, wasm.__wbindgen_export2);
855
+ const len0 = WASM_VECTOR_LEN;
856
+ const ptr1 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
857
+ const len1 = WASM_VECTOR_LEN;
858
+ wasm.apply_smirks(retptr, ptr0, len0, ptr1, len1);
859
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
860
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
861
+ deferred3_0 = r0;
862
+ deferred3_1 = r1;
863
+ return getStringFromWasm0(r0, r1);
864
+ } finally {
865
+ wasm.__wbindgen_add_to_stack_pointer(16);
866
+ wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
867
+ }
868
+ }
869
+
739
870
  /**
740
871
  * Assemble a framework crystal structure.
741
872
  *
@@ -1881,6 +2012,48 @@ export function compute_md_trajectory_nvt(smiles, coords_json, n_steps, dt_fs, s
1881
2012
  }
1882
2013
  }
1883
2014
 
2015
+ /**
2016
+ * Run velocity-Verlet MD with a configurable energy backend.
2017
+ *
2018
+ * `backend`: `"uff"`, `"pm3"`, `"xtb"`.
2019
+ * `target_temp_k`: if > 0, enables Berendsen thermostat with 100 fs coupling.
2020
+ *
2021
+ * Returns JSON `MdTrajectory`.
2022
+ * @param {string} smiles
2023
+ * @param {string} coords_json
2024
+ * @param {string} elements_json
2025
+ * @param {number} n_steps
2026
+ * @param {number} dt_fs
2027
+ * @param {number} seed
2028
+ * @param {number} target_temp_k
2029
+ * @param {string} backend
2030
+ * @returns {string}
2031
+ */
2032
+ export function compute_md_trajectory_with_method(smiles, coords_json, elements_json, n_steps, dt_fs, seed, target_temp_k, backend) {
2033
+ let deferred5_0;
2034
+ let deferred5_1;
2035
+ try {
2036
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2037
+ const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2038
+ const len0 = WASM_VECTOR_LEN;
2039
+ const ptr1 = passStringToWasm0(coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2040
+ const len1 = WASM_VECTOR_LEN;
2041
+ const ptr2 = passStringToWasm0(elements_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2042
+ const len2 = WASM_VECTOR_LEN;
2043
+ const ptr3 = passStringToWasm0(backend, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2044
+ const len3 = WASM_VECTOR_LEN;
2045
+ wasm.compute_md_trajectory_with_method(retptr, ptr0, len0, ptr1, len1, ptr2, len2, n_steps, dt_fs, seed, target_temp_k, ptr3, len3);
2046
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2047
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2048
+ deferred5_0 = r0;
2049
+ deferred5_1 = r1;
2050
+ return getStringFromWasm0(r0, r1);
2051
+ } finally {
2052
+ wasm.__wbindgen_add_to_stack_pointer(16);
2053
+ wasm.__wbindgen_export4(deferred5_0, deferred5_1, 1);
2054
+ }
2055
+ }
2056
+
1884
2057
  /**
1885
2058
  * Predict molecular properties using ML proxy models.
1886
2059
  * @param {string} smiles
@@ -1956,6 +2129,47 @@ export function compute_molecular_descriptors(smiles) {
1956
2129
  }
1957
2130
  }
1958
2131
 
2132
+ /**
2133
+ * Build a simplified NEB path with a configurable energy backend.
2134
+ *
2135
+ * `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
2136
+ *
2137
+ * Returns JSON `NebPathResult` with images, energies, TS info.
2138
+ * @param {string} smiles
2139
+ * @param {string} start_coords_json
2140
+ * @param {string} end_coords_json
2141
+ * @param {number} n_images
2142
+ * @param {number} n_iter
2143
+ * @param {number} spring_k
2144
+ * @param {number} step_size
2145
+ * @param {string} method
2146
+ * @returns {string}
2147
+ */
2148
+ export function compute_neb_path_with_method(smiles, start_coords_json, end_coords_json, n_images, n_iter, spring_k, step_size, method) {
2149
+ let deferred5_0;
2150
+ let deferred5_1;
2151
+ try {
2152
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2153
+ const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2154
+ const len0 = WASM_VECTOR_LEN;
2155
+ const ptr1 = passStringToWasm0(start_coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2156
+ const len1 = WASM_VECTOR_LEN;
2157
+ const ptr2 = passStringToWasm0(end_coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2158
+ const len2 = WASM_VECTOR_LEN;
2159
+ const ptr3 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2160
+ const len3 = WASM_VECTOR_LEN;
2161
+ wasm.compute_neb_path_with_method(retptr, ptr0, len0, ptr1, len1, ptr2, len2, n_images, n_iter, spring_k, step_size, ptr3, len3);
2162
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2163
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2164
+ deferred5_0 = r0;
2165
+ deferred5_1 = r1;
2166
+ return getStringFromWasm0(r0, r1);
2167
+ } finally {
2168
+ wasm.__wbindgen_add_to_stack_pointer(16);
2169
+ wasm.__wbindgen_export4(deferred5_0, deferred5_1, 1);
2170
+ }
2171
+ }
2172
+
1959
2173
  /**
1960
2174
  * Generate a complete NMR spectrum.
1961
2175
  *
@@ -3061,6 +3275,32 @@ export function init_webgpu() {
3061
3275
  return takeObject(ret);
3062
3276
  }
3063
3277
 
3278
+ /**
3279
+ * List available NEB backend methods for a given set of elements.
3280
+ *
3281
+ * Returns JSON array of `{"method": string, "available": bool, "note": string}`.
3282
+ * @param {string} elements_json
3283
+ * @returns {string}
3284
+ */
3285
+ export function list_neb_backends(elements_json) {
3286
+ let deferred2_0;
3287
+ let deferred2_1;
3288
+ try {
3289
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3290
+ const ptr0 = passStringToWasm0(elements_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3291
+ const len0 = WASM_VECTOR_LEN;
3292
+ wasm.list_neb_backends(retptr, ptr0, len0);
3293
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3294
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3295
+ deferred2_0 = r0;
3296
+ deferred2_1 = r1;
3297
+ return getStringFromWasm0(r0, r1);
3298
+ } finally {
3299
+ wasm.__wbindgen_add_to_stack_pointer(16);
3300
+ wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
3301
+ }
3302
+ }
3303
+
3064
3304
  /**
3065
3305
  * @returns {string}
3066
3306
  */
@@ -3081,6 +3321,74 @@ export function merge_experiment_results_wasm() {
3081
3321
  }
3082
3322
  }
3083
3323
 
3324
+ /**
3325
+ * Evaluate the energy (kcal/mol) and gradient of a geometry with a given NEB backend.
3326
+ *
3327
+ * `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
3328
+ *
3329
+ * Returns JSON `{"energy": <f64>, "gradient": [<f64>...], "method": "<str>"}`.
3330
+ * @param {string} method
3331
+ * @param {string} smiles
3332
+ * @param {string} coords_json
3333
+ * @returns {string}
3334
+ */
3335
+ export function neb_energy_and_gradient(method, smiles, coords_json) {
3336
+ let deferred4_0;
3337
+ let deferred4_1;
3338
+ try {
3339
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3340
+ const ptr0 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3341
+ const len0 = WASM_VECTOR_LEN;
3342
+ const ptr1 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3343
+ const len1 = WASM_VECTOR_LEN;
3344
+ const ptr2 = passStringToWasm0(coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3345
+ const len2 = WASM_VECTOR_LEN;
3346
+ wasm.neb_energy_and_gradient(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
3347
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3348
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3349
+ deferred4_0 = r0;
3350
+ deferred4_1 = r1;
3351
+ return getStringFromWasm0(r0, r1);
3352
+ } finally {
3353
+ wasm.__wbindgen_add_to_stack_pointer(16);
3354
+ wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
3355
+ }
3356
+ }
3357
+
3358
+ /**
3359
+ * Evaluate the energy (kcal/mol) of a geometry with a given NEB backend.
3360
+ *
3361
+ * `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
3362
+ *
3363
+ * Returns JSON `{"energy": <f64>, "method": "<str>"}`.
3364
+ * @param {string} method
3365
+ * @param {string} smiles
3366
+ * @param {string} coords_json
3367
+ * @returns {string}
3368
+ */
3369
+ export function neb_single_point_energy(method, smiles, coords_json) {
3370
+ let deferred4_0;
3371
+ let deferred4_1;
3372
+ try {
3373
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3374
+ const ptr0 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3375
+ const len0 = WASM_VECTOR_LEN;
3376
+ const ptr1 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3377
+ const len1 = WASM_VECTOR_LEN;
3378
+ const ptr2 = passStringToWasm0(coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3379
+ const len2 = WASM_VECTOR_LEN;
3380
+ wasm.neb_single_point_energy(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
3381
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3382
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3383
+ deferred4_0 = r0;
3384
+ deferred4_1 = r1;
3385
+ return getStringFromWasm0(r0, r1);
3386
+ } finally {
3387
+ wasm.__wbindgen_add_to_stack_pointer(16);
3388
+ wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
3389
+ }
3390
+ }
3391
+
3084
3392
  /**
3085
3393
  * Pack a batch of conformer results into Arrow-compatible columnar format.
3086
3394
  * @param {string} results_json
@@ -3129,6 +3437,41 @@ export function parse_smiles(smiles) {
3129
3437
  }
3130
3438
  }
3131
3439
 
3440
+ /**
3441
+ * Parse a SMIRKS reaction transform string.
3442
+ *
3443
+ * Returns JSON `SmirksTransform`:
3444
+ * ```json
3445
+ * {
3446
+ * "reactant_smarts": ["[C:1](=O)[OH:2]"],
3447
+ * "product_smarts": ["[C:1](=O)[O-:2]"],
3448
+ * "atom_map": {1: 1, 2: 2},
3449
+ * "bond_changes": [...],
3450
+ * "smirks": "[C:1](=O)[OH:2]>>[C:1](=O)[O-:2]"
3451
+ * }
3452
+ * ```
3453
+ * @param {string} smirks
3454
+ * @returns {string}
3455
+ */
3456
+ export function parse_smirks(smirks) {
3457
+ let deferred2_0;
3458
+ let deferred2_1;
3459
+ try {
3460
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3461
+ const ptr0 = passStringToWasm0(smirks, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3462
+ const len0 = WASM_VECTOR_LEN;
3463
+ wasm.parse_smirks(retptr, ptr0, len0);
3464
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3465
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3466
+ deferred2_0 = r0;
3467
+ deferred2_1 = r1;
3468
+ return getStringFromWasm0(r0, r1);
3469
+ } finally {
3470
+ wasm.__wbindgen_add_to_stack_pointer(16);
3471
+ wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
3472
+ }
3473
+ }
3474
+
3132
3475
  /**
3133
3476
  * @returns {boolean}
3134
3477
  */
@@ -3789,7 +4132,7 @@ function __wbg_get_imports(memory) {
3789
4132
  const a = state0.a;
3790
4133
  state0.a = 0;
3791
4134
  try {
3792
- return __wasm_bindgen_func_elem_575(a, state0.b, arg0, arg1);
4135
+ return __wasm_bindgen_func_elem_632(a, state0.b, arg0, arg1);
3793
4136
  } finally {
3794
4137
  state0.a = a;
3795
4138
  }
@@ -3807,7 +4150,7 @@ function __wbg_get_imports(memory) {
3807
4150
  const a = state0.a;
3808
4151
  state0.a = 0;
3809
4152
  try {
3810
- return __wasm_bindgen_func_elem_575(a, state0.b, arg0, arg1);
4153
+ return __wasm_bindgen_func_elem_632(a, state0.b, arg0, arg1);
3811
4154
  } finally {
3812
4155
  state0.a = a;
3813
4156
  }
@@ -4093,18 +4436,18 @@ function __wbg_get_imports(memory) {
4093
4436
  return addHeapObject(ret);
4094
4437
  },
4095
4438
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
4096
- // Cast intrinsic for `Closure(Closure { dtor_idx: 121, function: Function { arguments: [Externref], shim_idx: 122, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4097
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2827, __wasm_bindgen_func_elem_2833);
4439
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 125, function: Function { arguments: [Externref], shim_idx: 126, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4440
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2936, __wasm_bindgen_func_elem_2942);
4098
4441
  return addHeapObject(ret);
4099
4442
  },
4100
4443
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
4101
- // Cast intrinsic for `Closure(Closure { dtor_idx: 121, function: Function { arguments: [Externref], shim_idx: 29, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
4102
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2827, __wasm_bindgen_func_elem_661);
4444
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 125, function: Function { arguments: [Externref], shim_idx: 35, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
4445
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2936, __wasm_bindgen_func_elem_718);
4103
4446
  return addHeapObject(ret);
4104
4447
  },
4105
4448
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
4106
- // Cast intrinsic for `Closure(Closure { dtor_idx: 121, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 122, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4107
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2827, __wasm_bindgen_func_elem_2833_2);
4449
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 125, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 126, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4450
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2936, __wasm_bindgen_func_elem_2942_2);
4108
4451
  return addHeapObject(ret);
4109
4452
  },
4110
4453
  __wbindgen_cast_0000000000000004: function(arg0) {
@@ -4143,7 +4486,7 @@ function __wbg_get_imports(memory) {
4143
4486
  __wbindgen_object_drop_ref: function(arg0) {
4144
4487
  takeObject(arg0);
4145
4488
  },
4146
- memory: memory || new WebAssembly.Memory({initial:22,maximum:16384,shared:true}),
4489
+ memory: memory || new WebAssembly.Memory({initial:24,maximum:16384,shared:true}),
4147
4490
  };
4148
4491
  return {
4149
4492
  __proto__: null,
@@ -4151,18 +4494,18 @@ function __wbg_get_imports(memory) {
4151
4494
  };
4152
4495
  }
4153
4496
 
4154
- function __wasm_bindgen_func_elem_2833(arg0, arg1, arg2) {
4155
- wasm.__wasm_bindgen_func_elem_2833(arg0, arg1, addHeapObject(arg2));
4497
+ function __wasm_bindgen_func_elem_2942(arg0, arg1, arg2) {
4498
+ wasm.__wasm_bindgen_func_elem_2942(arg0, arg1, addHeapObject(arg2));
4156
4499
  }
4157
4500
 
4158
- function __wasm_bindgen_func_elem_2833_2(arg0, arg1, arg2) {
4159
- wasm.__wasm_bindgen_func_elem_2833_2(arg0, arg1, addHeapObject(arg2));
4501
+ function __wasm_bindgen_func_elem_2942_2(arg0, arg1, arg2) {
4502
+ wasm.__wasm_bindgen_func_elem_2942_2(arg0, arg1, addHeapObject(arg2));
4160
4503
  }
4161
4504
 
4162
- function __wasm_bindgen_func_elem_661(arg0, arg1, arg2) {
4505
+ function __wasm_bindgen_func_elem_718(arg0, arg1, arg2) {
4163
4506
  try {
4164
4507
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4165
- wasm.__wasm_bindgen_func_elem_661(retptr, arg0, arg1, addHeapObject(arg2));
4508
+ wasm.__wasm_bindgen_func_elem_718(retptr, arg0, arg1, addHeapObject(arg2));
4166
4509
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4167
4510
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4168
4511
  if (r1) {
@@ -4173,8 +4516,8 @@ function __wasm_bindgen_func_elem_661(arg0, arg1, arg2) {
4173
4516
  }
4174
4517
  }
4175
4518
 
4176
- function __wasm_bindgen_func_elem_575(arg0, arg1, arg2, arg3) {
4177
- wasm.__wasm_bindgen_func_elem_575(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
4519
+ function __wasm_bindgen_func_elem_632(arg0, arg1, arg2, arg3) {
4520
+ wasm.__wasm_bindgen_func_elem_632(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
4178
4521
  }
4179
4522
 
4180
4523
 
Binary file