betaFeedback

WorksPhysics and Astronomy

A Quasipolynomial Quantum Algorithm for the Vector Dihedral Coset Problem with Smooth Modulus

Abstract

We give a quantum algorithm for the vector dihedral coset problem over Zqn\mathbb{Z}_q^n, in which the goal is to recover s∈Zqn\mathbf{s} \in \mathbb{Z}_q^n given independent samples of the form 12(∣0,x⟩+∣1,x+s⟩)\frac{1}{\sqrt{2}}\bigl(|{0,\mathbf{x}}\rangle+|{1,\mathbf{x}+\mathbf{s}}\rangle\bigr), for x∼Zqn\mathbf{x}\sim \mathbb{Z}_q^n. When the modulus qq is BB-smooth, the algorithm uses nO(B1+o(1)log⁡q)BO(B2+o(1)log⁡q)n^{O(B^{1+o(1)}\log q)}B^{O(B^{2+o(1)}\log q)} samples and time. For B=polylog(n)B = \mathrm{polylog}(n) and q=poly(n)q=\mathrm{poly}(n), this gives a quasipolynomial time- and sample-complexity. This extends the previously known quasipolynomial-time result for power-of-two moduli (Bonnetain, Naya-Plasencia, ASIACRYPT 2018; Bai, Jangir, Kirshanova, Ngo, Youmans, CRYPTO 2025). The algorithm proceeds by reducing the modulus one prime factor p∣qp | q at a time. The key ingredient is a sieving procedure that clears the non-linear terms in the phase modulo pp via an algorithm of Ivanyos, Santha (TCS 2017) that finds non-zero u∈Fpℓ\mathbf{u} \in \mathbb{F}_p^\ell such that ∑i∈[ℓ]uidai=0mod  p\sum_{i \in [\ell]} u_i^d \mathbf{a}_i = 0 \mod p for degrees 1≤d≤p−11 \le d \le p-1, given vectors a1,…,aℓ∈Fpn\mathbf{a}_1, \ldots, \mathbf{a}_\ell \in \mathbb{F}_p^n as input. The algorithm also applies to the extrapolated dihedral coset problem (EDCP) introduced by Brakerski, Kirshanova, Stehlé, Wen (PKC 2018), which is known to be equivalent to LWE in the polynomial sample regime. However, our result does not yield a new attack on LWE in any regime, precisely because the known reduction from LWE to EDCP provides only polynomially many clean samples, whereas our algorithm requires quasipolynomially many samples. The main algorithm was obtained in a GPT-5.6 Sol conversation prompted by the author; the author is responsible for all statements, proofs, and correctness. Concurrent work of Boucher, Fouque, Shen gives an algorithm with similar guarantees for prime-power moduli.

Introduction

The dihedral coset problem DCPqm\mathrm{DCP}_{q}^{m} asks to recover a secret s∈Zqs \in\mathbb{Z}_{q} from mm independent quantum samples of the form

12(∣0⟩∣xi⟩+∣1⟩∣xi+s⟩),xi←Zq, i∈[m],\frac{1}{\sqrt{2}}\left(\lvert0\rangle\lvert x_i\rangle+\lvert1\rangle\lvert x_i+s\rangle\right), \qquad x_i \leftarrow\mathbb{Z}_{q},\ i \in[m],

where the offsets xix_i are uniformly random and unknown to the solver. States of this form naturally appear in the “standard approach” for the dihedral hidden subgroup problem and for the hidden shift problem over Zq\mathbb{Z}_{q} [16, 20]; solving DCP in polynomial time would imply polynomial-time quantum algorithms for both these problems. The best algorithm we know for all three of these problems is due to Kuperberg [16], and has subexponential time and sample complexity 2O(log⁡q)2^{O(\sqrt{\log q})}.

Interestingly, DCP upper-bounds the hardness of the computational problems underlying several of our candidate post-quantum cryptographic assumptions. Key recovery for a cryptographic abelian group action is an instance of the hidden shift problem [7], and Kuperberg-style DCP algorithms give the best known attacks for group action-based cryptography [5, 18]. Similarly, DCP is closely related to Learning With Errors (LWE), a central problem at the heart of lattice-based cryptography. Regev [19] showed that poly⁡(n)\operatorname{poly}(n)-uSVP (and therefore also LWE) is no harder than DCP, by giving a polynomial-time quantum reduction to DCPqm\mathrm{DCP}_{q}^{m}. Crucially, this reduction produces only polynomially many noiseless DCP samples, rendering Kuperberg’s subexponential algorithm irrelevant. Information-theoretically, however, m=O(log⁡q)m=O(\log q) samples already determine ss [11], and an algorithm with polynomial time- and sample-complexity for DCP would give a polynomial-time attack on lattice-based cryptography. The reduction, however, runs in one direction only: LWE might potentially be a lot easier than DCP.

To close this potential gap in hardness, Brakerski, Kirshanova, Stehlé and Wen [3] introduced the extrapolated dihedral coset problem EDCPn,q,fm\mathrm{EDCP}_{n,q,f}^{m}. It is parameterized additionally by a dimension n∈Nn \in\mathbb{N} and an amplitude function f:Z→Cf:\mathbb{Z}\to\mathbb{C} with ∑k∈Z∣f(k)∣2=1\sum_{k\in\mathbb{Z}}|f(k)|^{2}=1, and asks to recover a secret vector s∈Zqn\mathbf{s}\in\mathbb{Z}_{q}^{n} from mm independent quantum states of the form

∑k∈Zf(k)∣k⟩∣xi+k⋅s⟩,xi∈Zqn, i∈[m].\sum_{k\in\mathbb{Z}}f(k)\lvert k\rangle\lvert\mathbf{x}_i+k\cdot\mathbf{s}\rangle,\qquad\mathbf{x}_i\in\mathbb{Z}_{q}^{n},\ i\in[m].

Taking n=1n=1 and f(k)=12⋅1[k∈{0,1}]f(k)=\frac{1}{\sqrt{2}}\cdot\mathbf{1}[k\in\{0,1\}] gives two-point DCP states. Writing U-EDCPn,q,rm_{n,q,r}^{m} for the uniform case, in which ff is the normalized indicator of {0,1,…,r−1}\{0,1,\ldots,r-1\}, Brakerski et al. showed that U-EDCPn,q,rm_{n,q,r}^{m} and LWEn,q,α_{n,q,\alpha} are equivalent up to polynomial losses in parameters under polynomial-time quantum reductions when m=poly⁡(nlog⁡q)m=\operatorname{poly}(n\log q) and r=poly⁡(nlog⁡q)/αr=\operatorname{poly}(n\log q)/\alpha.

Throughout this paper, we specialize to the two-point amplitude f(k)=121[k∈{0,1}]f(k)=\frac{1}{\sqrt{2}}\mathbf{1}[k\in\{0,1\}], and call this problem vector dihedral coset problem, denoted as DCPn,qm\mathrm{DCP}_{n,q}^{m}. This problem is known to be as hard as U-EDCPn,q,rm_{n,q,r}^{m} [BJK$^{+}$25, Lemma 14]. Our goal is thus to recover s\mathbf{s} from independent samples of the form

12(∣0⟩∣xi⟩+∣1⟩∣xi+s⟩),xi←Zqn, i∈[m].\frac{1}{\sqrt{2}}\left(\lvert0\rangle\lvert\mathbf{x}_i\rangle+\lvert1\rangle\lvert\mathbf{x}_i+\mathbf{s}\rangle\right),\qquad\mathbf{x}_i\leftarrow\mathbb{Z}_{q}^{n},\ i\in[m].

For general moduli, the best known algorithm is still Kuperberg’s, which solves DCPqm\mathrm{DCP}_{q}^{m} in time and samples 2O(log⁡q)2^{O(\sqrt{\log q})} [16]; applied to the group Zqn\mathbb{Z}_{q}^{n} it solves DCPn,qm\mathrm{DCP}_{n,q}^{m} in time 2O(nlog⁡q)2^{O(\sqrt{n\log q})}. For structured moduli, however, one can do considerably better. When q=pq=p is a fixed prime, Friedl, Ivanyos, Magniez, Santha and Sen [FIM$^{+}$14] solve the problem in polynomial time, and when q=2tq=2^{t} is a power of two, Bai, Jangir, Kirshanova, Ngo and Youmans [BJK$^{+}$25] give a quasipolynomial-time algorithm for q=poly⁡(n)q=\operatorname{poly}(n). Both exploit special structure of the modulus, which raises the question:

Our main result and idea

Call a modulus BB-smooth if all of its prime factors are at most BB. Our main result is an algorithm for DCPn,qm\mathrm{DCP}^{m}_{n,q} whose cost is governed by the largest prime factor of qq.

Informal Theorem 1.1 (Corollary 4.18). Let q>1q > 1 be BB-smooth. There is a quantum algorithm that recovers s∈Zqn\mathbf{s} \in\mathbb{Z}_{q}^{n} from two-point vector DCP states with success probability at least 1−ε1-\varepsilon, using

nO(B1+o(1)log⁡q)BO(B2+o(1)log⁡q)poly⁡(log⁡2ε)n^{O(B^{1+o(1)}\log q)}B^{O(B^{2+o(1)}\log q)}\operatorname{poly}\left(\log\frac{2}{\varepsilon}\right)

samples and time. This is quasipolynomial when B=polylog⁡(n)B=\operatorname{polylog}(n) and q=poly⁡(n)q=\operatorname{poly}(n).

The work of Boucher, Fouque and Shen [1] uses different techniques to obtain an algorithm for prime-power moduli q=ptq=p^{t}. We handle smooth moduli with possibly different prime factors. We compare our results in more detail in § 1.2.

Our algorithm proceeds by reducing the modulus one prime factor p∣qp\mid q at a time. The main idea is that this can be done by a sieving procedure that clears the non-linear terms in the phase modulo pp, one degree at a time, via a subroutine that finds non-zero u∈Fpℓ\mathbf{u}\in\mathbb{F}_{p}^{\ell} such that ∑i∈[ℓ]uidai=0(modp)\sum_{i\in[\ell]}u_{i}^{d}a_{i}=0\pmod p, given vectors a1,…,aℓ∈Fpn\mathbf{a}_{1},\ldots,\mathbf{a}_{\ell}\in\mathbb{F}_{p}^{n}. We use the diagonal-equation algorithm of Ivanyos and Santha [13] for this purpose; the subset sum algorithms of Imran and Ivanyos [II23] or Kothari–O’Donnell–Wu [15] give alternative ways to find these relations with slightly worse dependence on BB in the exponent of nn. We describe our techniques in more detail in § 2.

We describe our main algorithm (Algorithm 4.15) and state the main result (Theorem 4.16) in terms of DCP for the generalized dihedral group dih⁡(G)\operatorname{dih}(G), where Zqn\mathbb{Z}_{q}^{n} is replaced with a general finite abelian group GG to which we have black-box access. This allows us to highlight the structure of Zqn\mathbb{Z}_{q}^{n} that enables a faster algorithm (see Corollary 4.17).

Related work

The algorithm of Kuperberg [16] gives a subexponential-time quantum algorithm for the hidden shift problem over arbitrary finite abelian groups: given oracle access to injective functions f0,f1:G→Xf_{0},f_{1}:G\to X satisfying f0(x)=f1(x+s)f_{0}(x)=f_{1}(x+s) for some unknown s∈Gs\in G, the goal is to recover ss. Querying these functions in superposition and measuring the output register yields states of the form 12(∣0,x⟩+∣1,x+s⟩)\frac{1}{\sqrt{2}}(\lvert0,x\rangle+\lvert1,x+s\rangle), where x∈Gx\in G is uniformly random. These are coset states of the generalized dihedral group dih⁡(G)\operatorname{dih}(G), defined in Definition 3.1.

Specializing to G=ZqnG=\mathbb{Z}_{q}^{n} yields the vector dihedral coset problem, which Kuperberg’s algorithm solves in time and sample complexity 2O(nlog⁡q)2^{O(\sqrt{n\log q})}, for arbitrary moduli qq. In this setting, Kuperberg’s algorithm works by first performing a quantum Fourier transform to convert DCP samples into Fourier samples of the form (a,12(∣0⟩+ωq⟨a,s⟩∣1⟩))\left(\mathbf{a},\frac{1}{\sqrt{2}}(\lvert0\rangle+\omega_{q}^{\langle\mathbf{a},\mathbf{s}\rangle}\lvert1\rangle)\right), and then performs a “sieving” step that iteratively combines these Fourier samples until a∈(q/2)Zqn\mathbf{a}\in(q/2)\mathbb{Z}_{q}^{n}. At this point, the least significant bits of ss can be learned by a Hadamard transform and Gaussian elimination.

Memory-efficient algorithms. In addition to requiring subexponential samples and runtime, Kuperberg’s original algorithm requires 2O(log⁡∣G∣)2^{O(\sqrt{\log|G|})} quantum memory. Regev reduced the space complexity to poly⁡(log⁡∣G∣)\operatorname{poly}(\log|G|) for cyclic 2-groups, at the expense of increasing the time and sample complexity to 2O(log⁡∣G∣log⁡log⁡∣G∣)2^{O(\sqrt{\log|G|\log\log|G|})} [20]. Kuperberg’s later collimation sieve recovered the original 2O(log⁡∣G∣)2^{O(\sqrt{\log|G|})} time bound while requiring only O(log⁡∣G∣)O(\log|G|) qubits, at the cost of subexponential 2O(log⁡∣G∣)2^{O(\sqrt{\log|G|})} classical memory accessible in quantum superposition [17]. Peikert [18] extended the collimation sieve to arbitrary cyclic groups and analyzed its concrete costs for CSIDH, an isogeny-based key-exchange protocol built from a commutative group action on supersingular elliptic curves.

Time- and sample-efficient algorithms for structured groups. While the preceding works reduce the space complexity of Kuperberg’s algorithm, additional group structure can be exploited to get algorithms that run faster and use fewer samples. The simplest case is G=Z2nG = \mathbb{Z}_2^n, where hidden shift reduces to Simon’s problem and can be solved in poly⁡(n)\operatorname{poly}(n) time using poly⁡(n)\operatorname{poly}(n) samples by Fourier sampling and then Gaussian elimination [21]. Friedl, Ivanyos, Magniez, Santha, and Sen [12] generalized this result to G=FpnG = \mathbb{F}_p^n for any prime pp, achieving time complexity nO(p)pO(p)n^{O(p)}p^{O(p)}. Their key observation is that quantum Fourier sampling can be used to obtain random linear disequations of the form ⟨a,s⟩≠0 mod p\langle a,s\rangle\ne0 \bmod p. By Fermat’s little theorem, these can then be converted into linear equations in the degree-(p−1)(p-1) monomials of ss, allowing the secret to be recovered using linear algebra [14].

Friedl et al. [12] also extend their algorithm to more general groups using a recursion-friendly generalization of the hidden shift problem, in which the secret shift can be an entire coset, rather than just a single element.1 Given hidden shift oracles f0,f1:G→Xf_0,f_1:G \to X, they first prepare the states

∣fb⟩:=1∣G∣∑x∈G∣x,fb(x)⟩,|f_b\rangle:= \frac{1}{\sqrt{|G|}}\sum_{x\in G}|x,f_b(x)\rangle,

References

  1. [1]Mathias Boucher, Pierre-Alain Fouque, and Yixin Shen. Cyclotomic cosets: Hidden subgroup and quantum sieving algorithm for prime-power moduli. arXiv preprint arXiv:2609.34996, 2026. 4, 6, 7arxiv.org/abs/2609.34996
  2. [2]Shi Bai, Hansraj Jangir, Elena Kirshanova, Tran Ngo, and William Youmans. A quasi-polynomial time algorithm for the extrapolated dihedral coset problem over power-of-two moduli. IACR Cryptology ePrint Archive, Paper 2025/1046, 2025. 3, 6, 8, 9DOI
  3. [3]Zvika Brakerski, Elena Kirshanova, Damien Stehlé, and Weiqiang Wen. Learning with errors and extrapolated dihedral cosets. In IACR international workshop on public key cryptography, pages 702–727. Springer, 2018. 3, 7arxiv.org/abs/1710.08223
  4. [4]Xavier Bonnetain and María Naya-Plasencia. Hidden shift quantum cryptanalysis and implications. In Advances in Cryptology—ASIACRYPT 2018, Part I, volume 11272 of Lecture Notes in Computer Science, pages 560–592. Springer, 2018. 6, 9DOI
  5. [5]Xavier Bonnetain and André Schrottenloher. Quantum security analysis of CSIDH. In Advances in Cryptology—EUROCRYPT 2020, Part II, volume 12106 of Lecture Notes in Computer Science, pages 493–522. Springer, 2020. 3
  6. [6]Wouter Castryck, Ann Dooms, Carlo Emerencia, and Alexander Lemmens. A fusion algorithm for solving the hidden shift problem in finite abelian groups. In Post-Quantum Cryptography—PQCrypto 2021, volume 12841 of Lecture Notes in Computer Science, pages 133–153. Springer, 2021. 6DOI
  7. [7]Andrew M. Childs, David Jao, and Vladimir Soukharev. Constructing elliptic curve isogenies in quantum subexponential time. Journal of Mathematical Cryptology, 8(1):1–29, 2014. 3
  8. [8]Yilei Chen, Qipeng Liu, and Mark Zhandry. Quantum algorithms for variants of average-case lattice problems via filtering. In Advances in Cryptology – EUROCRYPT 2022, Part III, volume 13277 of Lecture Notes in Computer Science, pages 372–401. Springer, 2022. 6
  9. [9]Kevin K. H. Cheung and Michele Mosca. Decomposing finite abelian groups. Quantum Information and Computation, 1(3):26–32, 2001. 14, 22
  10. [11]Mark Ettinger, Peter Høyer, and Emanuel Knill. The quantum query complexity of the hidden subgroup problem is polynomial. Information Processing Letters, 91(1):43–48, 2004. 3DOI
  11. [12]Katalin Friedl, Gábor Ivanyos, Frédéric Magniez, Miklos Santha, and Pranab Sen. Hidden translation and translating coset in quantum computing. SIAM Journal on Computing, 43(1):1–24, 2014. 3, 5, 6
  12. [13]Gábor Ivanyos and Miklós Santha. Solving systems of diagonal polynomial equations over finite fields. Theoretical Computer Science, 657:73–85, 2017. 4, 7, 8, 12, 24DOI
  13. [14]Gábor Ivanyos. On solving systems of random linear disequations. Quantum Information and Computation, 8(6–7):579–594, 2008. 5arxiv.org/abs/0704.2988
  14. [15]Robin Kothari, Ryan O’Donnell, and Kewen Wu. No exponential quantum speedup for SIS∞ anymore. arXiv preprint arXiv:2510.07515, 2026. 4, 7, 11, 12arxiv.org/abs/2510.07515
  15. [16]Greg Kuperberg. A subexponential-time quantum algorithm for the dihedral hidden subgroup problem. SIAM journal on Computing, 35(1):170–188, 2005. 3, 4, 8arxiv.org/abs/quant-ph/0302112
  16. [17]Greg Kuperberg. Another subexponential-time quantum algorithm for the dihedral hidden subgroup problem. In 8th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2013), volume 22 of LIPIcs, pages 20–34, 2013. 5
  17. [18]Chris Peikert. He gives C-sieves on the CSIDH. In Advances in Cryptology—EUROCRYPT 2020, Part II, volume 12106 of Lecture Notes in Computer Science, pages 463–492. Springer, 2020. 3, 5
  18. [19]Oded Regev. Quantum computation and lattice problems. SIAM Journal on Computing, 33(3):738–760, 2004. 3
  19. [20]Oded Regev. A subexponential time algorithm for the dihedral hidden subgroup problem with polynomial space. arXiv preprint quant-ph/0406151, 2004. 3, 5DOI
  20. [21]Daniel R Simon. On the power of quantum computation. SIAM journal on computing, 26(5):1474–1483, 1997. 5, 8

Paper details

vlnc:W_kzufb8vq
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 16

downloads · 1

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

GPT-5.6 Sol (bare)

View statement
Looking for related papers…
Contents