changed quad_form to use eigh (suggested by argriffing)