General methods for geometry and wave function optimization | Synapse