Skip to content

Transition-metal coordination topology ​

compute_topology locates transition-metal centres and classifies the coordination geometry from the ligand direction vectors. It is a geometric screening tool: it does not assign oxidation states, bond orders or a full molecular graph.

Status. Implemented on the Rust, Python and WASM surfaces. There is no CLI command. The checked wrapper is the external-surface entry point.

Feature. Core.

Detection ​

For each transition-metal atom M, a neighbour L is considered coordinated when its distance satisfies

rML≤1.3(rMcov+rLcov)+0.25 Å.

Hydrogen is excluded as a ligand. The unit vectors from M to every ligand are compared with the ideal direction sets for linear, trigonal-planar, tetrahedral, square-planar, trigonal-bipyramidal and octahedral geometries. The best score is returned together with the coordination number and ligand indices.

flowchart LR
    A[elements + finite 3N coords] --> B[Find transition-metal centres]
    B --> C[Distance cutoff per ligand]
    C --> D[Ligand direction vectors]
    D --> E[Compare with ideal geometries]
    E --> F[Best geometry + score + warnings]

API ​

rust
let cisplatin = sci_form::compute_topology_checked(&elements, &positions)?;
for center in &cisplatin.metal_centers {
    println!("{} Z={} CN={} {:?} score={:.3}",
        center.atom_index, center.element, center.coordination_number,
        center.geometry, center.geometry_score);
}
SurfaceEntry point
Rustcompute_topology (infallible, tolerant), compute_topology_checked (validating)
Pythoncompute_topology(elements, coords)
WASMcompute_topology(elements_json, coords_json)
CLInot exposed

Python and WASM use compute_topology_checked: mismatched lengths, an empty geometry or non-finite coordinates are errors. The bare Rust compute_topology keeps its historical tolerant behaviour for callers that need to inspect partial data; new external code should use the checked wrapper.

Validation ​

GateObservableResult
Square planarCisplatin PtCl₂(NH₃)₂CN=4, square_planar
OctahedralCrCl₆ model, 2.30 ÅCN=6, octahedral, score >0.8
TetrahedralZnCl₄ model, 2.25 ÅCN=4, tetrahedral
SerializationTopologyAnalysisResultstable JSON, geometry enum + CN
Invalid geometrylength mismatch, NaN, Z=0/119rejected by the checked wrapper
No metalOrganic moleculeempty centres + warning

The classification score is a geometric match, not a quantum stability or spectroscopic assignment.

Limits ​

  • Only transition metals listed by eht::is_transition_metal.
  • Cutoff is covalent-radius based; unusual bond lengths can add or miss ligands.
  • Ideal geometries are compared by direction, not by symmetry labels or Jahn–Teller distortions.
  • No oxidation state, spin state, hapticity or bond-order assignment; see hapticity for ring hapticity.
  • Hydrogen is never treated as a ligand.
  • Mismatched inputs are tolerated by the bare Rust API; use the checked wrapper.

Released under the MIT License.