Problem Definition
Pell's equation is one of the oldest studied problem in number theory. For a positive square-free integer d, Pell's equation is \( x^2 - d y^2 =1 \), and the problem is to compute integer solutions x, y of the equation [7,9]. The earliest algorithm for it uses the continued fraction expansion of \( \sqrt{d} \) and dates back to 1000 a.d. by Indian mathematicians. Lagrange showed that there are an infinite number of solutions of Pell's equation. All solutions are of the form \( x_n + y_n \sqrt{d} = (x_1 + y_1 \sqrt{d})^n \), where the smallest solution, \( (x_1, y_1) \), is called the fundamental solution. The solution \( (x_1, y_1) \) may have exponentially many bits in general in terms of the input size, which is log d, and so cannot be written down in polynomial time. To resolve this difficulty, the computational problem is recast as computing the integer closest to the regulator \( R = \ln(x_1 + y_1 \sqrt{d}) \). In this representation solutions of Pell's...
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Recommended Reading
Buchmann, J., Thiel, C., Williams, H.C.: Short representation of quadratic integers. In: Bosma, W., van der Poorten A.J. (eds.) Computational Algebra and Number Theory, Sydney 1992. Mathematics and its Applications, vol. 325, pp. 159–185. Kluwer Academic Publishers (1995)
Buchmann, J.A., Williams, H.C.: A key exchange system based on real quadratic fields (extended abstract). In: Brassard, G. (ed.) Advances in Cryptology–CRYPTO '89. Lecture Notes in Computer Science, vol. 435, pp. 335–343. Springer 1990, 20–24 Aug (1989)
Cohen, H.: A course in computational algebraic number theory, vol. 138 of Graduate Texts in Mathematics. Springer (1993)
Hallgren, S.: Polynomial-time quantum algorithms for Pell's equation and the principal ideal problem. J. ACM 54(1), 1–19 (2007)
Hamdy, S., Maurer, M.: Feige-fiat-shamir identification based on real quadratic fields, Tech. Report TI-23/99. Technische Universität Darmstadt, Fachbereich Informatik, http://www.informatik.tu-darmstadt.de/TI/Veroeffentlichung/TR/ (1999)
Jozsa, R.: Notes on Hallgren's efficient quantum algorithm for solving Pell's equation, tech. report, quant-ph/0302134 (2003)
Lenstra Jr, H.W.: Solving the Pell equation. Not. Am. Math. Soc. 49, 182–192 (2002)
Thiel, C.: On the complexity of some problems in algorithmic algebraic number theory, Ph. D. thesis. Universität des Saarlandes, Saarbrücken, Germany (1995)
Williams, H.C.: Solving the Pell equation. In: Proc. Millennial Conference on Number Theory, pp. 397–435 (2002)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2008 Springer-Verlag
About this entry
Cite this entry
Hallgren, S. (2008). Quantum Algorithm for Solving the Pell’s Equation. In: Kao, MY. (eds) Encyclopedia of Algorithms. Springer, Boston, MA. https://doi.org/10.1007/978-0-387-30162-4_312
Download citation
DOI: https://doi.org/10.1007/978-0-387-30162-4_312
Publisher Name: Springer, Boston, MA
Print ISBN: 978-0-387-30770-1
Online ISBN: 978-0-387-30162-4
eBook Packages: Computer ScienceReference Module Computer Science and Engineering