Add calculations of state errors to C extension