sim.sap_runtime.sap_state_from_newton# sim.sap_runtime.sap_state_from_newton(state: SapState | Any) → SapState[source]# Convert a Newton state into a SapState that uses the public boundary ordering expected by high- level callers.