qiskit-community / ffsim

Faster simulations of fermionic quantum circuits.
https://qiskit-community.github.io/ffsim/
Apache License 2.0
25 stars 8 forks source link

Fix Rust orbital rotation numerical instability #105

Closed kevinsung closed 7 months ago

kevinsung commented 7 months ago

Use arg to compute complex angle instead of dividing by norm, which was causing a NaNs due to division by zero.

Fixes #95