Quadratic forms and similarities