← Atlas

Algorithms · Quantum query algorithm

The Abelian hidden subgroup problem

Let G be a finitely generated Abelian group and let H be a subgroup of G such that G/H is finite, and let f be a function on G with the promise that f(g1) = f(g2) if and only if g1 and g2 lie in the same coset of H. The task is to find H, that is, a set of generators for H, by making queries to f. Mosca and Ekert work order finding and period finding as G = Z with hidden subgroup rZ, Simon's problem as G = Z_2^l, and the discrete logarithm as G = Z_r × Z_r.

Attested & literatureUpdated

View frozen graph

  • Record typeLiterature reference
  • Speedup class (secondary source)Superpolynomial
  • Primary source on the speedupNot stated by the primary source — the full text of Boneh and Lipton's 14-page CRYPTO '95 extended abstract, read as a PDF from the first author's Stanford page: abstract, section 1 (Introduction), section 2 (Main Results), section 3 (Applications), the lemmas and proofs of sections 4 through 8, and section 9 (Conclusions and Open Problems). It claims random quantum polynomial time for its own two theorems and for the general discrete logarithm problem and factoring, and names no classical running time, query count or lower bound to compare those against. Searching the extracted text for 'classical', 'exponential', 'lower bound', 'superpolynomial', 'speedup' and 'faster' returns 'classical' only in the abstract's closing sentence about junk bits, and 'lower bound' only in a lemma bounding a sum of roots of unity and in a counting step inside the proof of Theorem 1. was read and makes no such claim
  • Reported costO(log |G|) quantum queries to f against Ω(|G|) classically, both the Zoo's own, and black-box counts, not gate counts. Boneh and Lipton state their results as random quantum polynomial time in n = log q, not a query count, under conditions on the multiplicity m: Theorem 1 needs m and the variable count k at most n^O(1) and m below the smallest prime divisor of q, Theorem 2 the same on m alone. Beaudrap, Cleve and Watrous give a 2n-bit query problem over GF(2^n) solved exactly by one quantum query plus polynomially many auxiliary operations, where standard technique spends Θ(n) queries and bounded-error classical Ω(2^(n/2)).
  • Papers3

A part this method uses, worked through

This page says order finding — here is a concrete, runnable instance of it.

Order-finding for 7 mod 15

3 counting qubits, 4 work qubits, finding the order of 7 modulo 15 (the order is 4: 7⁴ mod 15 = 1).

q0q1q2q3q4q5q6XHadamard layer(3)Controlled x7 mod 15Controlled x4 mod 15QFT inverse(3)

Where it ends up

  • 00010006%
  • 00010106%
  • 00011006%
  • 00011106%
  • 12 more outcomes75%

The counting register reads 000, 010, 100 or 110, each equally likely, corresponding to the four powers k = 0, 1, 2, 3 of the order r = 4; the work register ends entangled with the counting outcome, holding one of 1, 7, 4 or 13. Repeating this and applying the continued-fractions step of the full algorithm to a nonzero outcome recovers the order r = 4 exactly.

Open this part in Studio

A part this method uses, worked through

This page says Simon's problem — here is a concrete, runnable instance of it.

Simon's algorithm with secret 11

2 input qubits, 1 ancilla, oracle f(x) = x₀ ⊕ x₁ (satisfies f(x) = f(x ⊕ s) for the secret s = 11).

q0q1q2HHCXCXHH

Where it ends up

  • 00025%
  • 01125%
  • 10025%
  • 11125%

The two input qubits read 00 or 11, each equally likely, regardless of the ancilla: both satisfy y · s = 0 for the secret s = 11, exactly as Simon's algorithm predicts for any single run.

Open this part in Studio
Unsupported
abelian-hidden-subgroup.txt
ALGORITHM: The Abelian hidden subgroup problem
PROBLEM: Let G be a finitely generated Abelian group and let H be a subgroup of G such that G/H is finite, and let f be a function on G with the promise that f(g1) = f(g2) if and only if g1 and g2 lie in the same coset of H. The task is to find H, that is, a set of generators for H, by making queries to f. Mosca and Ekert work order finding and period finding as G = Z with hidden subgroup rZ, Simon's problem as G = Z_2^l, and the discrete logarithm as G = Z_r × Z_r.
IDEA: The Zoo credits the first general formulation to Boneh and Lipton and calls attribution difficult: it subsumes many historically important algorithms as special cases, Simon's among them, which inspired Shor's period finding, and underlies the Pell's equation, principal ideal, unit group and class group algorithms. Their Theorem 1 recovers the hidden linear structure of a function from Z^k, Theorem 2 the period of a function on Z that need not be injective; the Abelian generality is one introductory sentence. Mosca and Ekert give the mechanism: f is constant on cosets of a subgroup K and distinct on each coset, and when G is a product of finitely many cyclic groups all are solved by a Fourier transform, a function application and an inverse transform. They then extend the eigenvalue-estimation reading, known already for order finding, factoring, discrete logarithms and Abelian stabilisers, to the general case. The row adds a special case one quantum query solves (Beaudrap, Cleve and Watrous) and two relaxations: Hales and Hallgren for period finding without injectivity, Shparlinski and Winterhof for most-significant-bit oracles.
REPORTED COST: O(log |G|) quantum queries to f against Ω(|G|) classically, both the Zoo's own, and black-box counts, not gate counts. Boneh and Lipton state their results as random quantum polynomial time in n = log q, not a query count, under conditions on the multiplicity m: Theorem 1 needs m and the variable count k at most n^O(1) and m below the smallest prime divisor of q, Theorem 2 the same on m alone. Beaudrap, Cleve and Watrous give a 2n-bit query problem over GF(2^n) solved exactly by one quantum query plus polynomially many auxiliary operations, where standard technique spends Θ(n) queries and bounded-error classical Ω(2^(n/2)).
BASIS: Quantum Algorithm Zoo entry "Abelian Hidden Subgroup" (LaTeX rendered into Unicode): "This is solvable on a quantum computer using O(log |G|) queries, whereas classically Ω(|G|) are required." Boneh and Lipton, "Quantum Cryptanalysis of Hidden Linear Functions", section 2 (Main Results), the two conditions of Theorem 1: "Let n = log q then m and k are at most n^O(1)." and "Let p be the smallest prime divisor of q; then m < p."; Theorem 2 repeats the second and imposes the first on m alone. Abstract of arXiv:quant-ph/0011065: "can be solved exactly in the quantum case with a single query (and a polynomial number of auxiliary operations)"; its section 1 adds "exhibiting a 2n-bit query problem", "In the classical setting, Ω(2^(n/2)) queries to the black-box are necessary to solve the problem with bounded error." and the Θ(n) figure for standard hidden-subgroup technique.
PRIMARY SOURCE: Dan Boneh, Richard J. Lipton (1995), Quantum Cryptanalysis of Hidden Linear Functions — https://doi.org/10.1007/3-540-44750-4_34

This is a literature reference record, not an executable circuit.

A reference record, not runnable source. Leona cannot execute it, so it cannot be saved to your Library as a circuit.

References

  • Quantum Cryptanalysis of Hidden Linear Functions

    Dan Boneh, Richard J. Lipton · 1995

    Primary source, and the paper the Quantum Algorithm Zoo credits with first formulating this algorithm in full generality. Theorem 1 recovers the hidden linear structure of a function from Z^k to an arbitrary range from an oracle for it, in random quantum polynomial time; Theorem 2 recovers the smallest positive period of a function on the integers that need not be one to one. Its corollaries are that the general discrete logarithm problem and factoring are each solvable in random quantum polynomial time. Consult it for the conditions on the multiplicity of the hidden function, which Theorem 1 pairs with a bound on the number of variables and Theorem 2 does not, and for the junk-bits construction. The generalization to any finite Abelian group is stated once, in the introduction, as a remark.

  • The Hidden Subgroup Problem and Eigenvalue Estimation on a Quantum Computer

    Michele Mosca, Artur Ekert · 1999

    The general Abelian case as one algorithm. The abstract lists order finding, factoring, discrete logarithms, stabilisers in Abelian groups and hidden subgroups of Abelian groups together, says the eigenvalue-estimation reading of the first four was already known, and shows the general Abelian case can be described and analysed as such too. Section 2 works order finding, Simon's problem, the discrete logarithm and the Abelian stabiliser problem as instances; section 4.3 states the promise; section 5 shrinks the control register to one bit. The appendix, on the many-to-one case, credits the question to Boneh and Lipton and reaches a condition of the same shape as theirs but on the order of the hidden subgroup rather than the period: the multiplicity must be below the smallest prime factor of |K|.

  • Sharp Quantum vs. Classical Query Complexity Separations

    J. Niel de Beaudrap, Richard Cleve, John Watrous · 2000

    The single-query special case the Zoo cites here, and a special case rather than a relaxation: section 1 calls the hidden linear structure problem a special case of the hidden subgroup problem as defined by Brassard and Høyer and by Mosca and Ekert, credits Hallgren with pointing the relationship out, and notes that standard technique would spend Θ(n) queries on it. It is a 2n-bit query problem over the field GF(2^n), solved exactly with one quantum query and a polynomial number of auxiliary operations, namely O(n) Hadamard gates then O(n^2) classical operations after a measurement, against Ω(2^(n/2)) queries classically. The exponential classical bound depends on the field structure and does not carry over to finite rings, and their problem differs from Boneh and Lipton's.

Attested & literature
  • Peer-reviewed paper
Method
Curation only. The problem statement was recorded from the literature; the speedup class is checked against the record's own primary paper, which does not state it; the primary reference's title, authors and submission year were read from its arXiv abs page; the complexity claim was taken from a clause of that paper's abstract (Quantum Algorithm Zoo entry "Abelian Hidden Subgroup" (LaTeX rendered into Unicode): "This is solvable on a quantum computer using O(log |G|) queries, whereas classically Ω(|G|) are required." Boneh and Lipton, "Quantum Cryptanalysis of Hidden Linear Functions", section 2 (Main Results), the two conditions of Theorem 1: "Let n = log q then m and k are at most n^O(1)." and "Let p be the smallest prime divisor of q; then m < p."; Theorem 2 repeats the second and imposes the first on m alone. Abstract of arXiv:quant-ph/0011065: "can be solved exactly in the quantum case with a single query (and a polynomial number of auxiliary operations)"; its section 1 adds "exhibiting a 2n-bit query problem", "In the classical setting, Ω(2^(n/2)) queries to the black-box are necessary to solve the problem with bounded error." and the Θ(n) figure for standard hidden-subgroup technique.). No circuit was constructed, simulated or run.
Result
Pass · the record's problem, speedup class and primary reference agree with the two sources named above.
Caveat
This is a literature record: nothing was built, compiled, simulated or run here, and no hidden subgroup was recovered. Both figures on it are query counts in a black-box model, so they say nothing about the gates needed to realize the Fourier transform of G or the oracle for f, and the classical Ω(|G|) side is a statement in the Zoo's own entry rather than a bound proved in any paper read for this record. The primary source is thinner than the row it anchors: Boneh and Lipton's theorems are about hidden linear structure over Z^k and about periods of functions on Z, the word "Abelian" occurs in the paper exactly once, in an introduction sentence saying their results can be generalized to any finite Abelian group, and both theorems carry conditions on the multiplicity of the hidden function that the Zoo's problem statement does not mention. Mosca and Ekert's one-sentence summary of the general Abelian case gives its cost as polynomial in n applications of the shift operators "where n is the index of K in G", while the opening of their section 2 defines "the input size, n, to be of order log2 [G : K]", so this record does not quote that figure and does not resolve which reading the authors meant. Beaudrap, Cleve and Watrous say themselves that their problem is related to but different from Boneh and Lipton's, and that their exponential classical lower bound depends on the field structure and does not always hold for finite rings, where over Z_(2^n) the classical query complexity is n + 1 rather than exponential, so the single-query result is one special case and not a general improvement on O(log |G|). The Zoo's implementation links on this row point at implementations of Simon's algorithm, itself a special case. The two relaxations the row cites, Hales and Hallgren and Shparlinski and Winterhof, were not read for this record; what is said of them here is relayed from the Zoo's entry text and named as such.
Quantum Cryptanalysis of Hidden Linear Functions ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
Citation metadata only; source publication terms apply
hidden subgroup problemabelian groupcosetoraclequery complexityfourier transform

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.