A line and a circle intersect at A and B as shown below. Find the distance between A and B.
The circle is x^2 + y^2 = 1, and the line is y = x.