cryptography

Apply quantum phase estimation and period finding to analyze cryptographic primitives.

30|2|Updated Apr 16, 2026
One-click install
npx skills add https://github.com/unitarylab/quantum-skills --skill cryptography-unitarylab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cryptography
Source: https://github.com/unitarylab/quantum-skills/tree/main/algorithms/cryptography
Command: npx skills add https://github.com/unitarylab/quantum-skills --skill cryptography-unitarylab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Quantum algorithms threaten classical cryptographic schemes by offering polynomial-time solutions to historically hard problems such as integer factorization, discrete logarithms, and hidden subgroup problems. This skill provides a hands-on look at how quantum circuits can break or analyze cryptographic primitives.

Core Features & Use Cases

  • Shor's algorithm for factoring and order finding.
  • Discrete log / DLP attack demonstrations.
  • Simon's problem and the hidden subgroup structure as a teaching tool.
  • Hands-on circuit construction, simulation, and classical post-processing to recover secret quantities.

Quick Start

Run the included Simon, Discrete Logarithm, and Shor examples to observe how quantum circuits reveal cryptographic structure.

Frequently Asked Questions about cryptography

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does Shor's algorithm break RSA cryptography using quantum circuits?

Shor's algorithm breaks RSA cryptography by applying quantum phase estimation and period finding to factor integers in polynomial time. This Skill demonstrates the process through hands-on Python simulations, allowing you to observe how quantum circuits reveal the cryptographic structure of factoring and order finding.

What quantum algorithms are available for solving the discrete logarithm problem?

For the discrete logarithm problem, this Skill provides discrete log attack demonstrations using quantum circuits. It applies quantum phase estimation to analyze and break cryptographic primitives, offering a hands-on look at how hidden subgroup structure is exploited.

Do I need to understand quantum Fourier transform and linear algebra to use this cryptography Skill?

Yes, you need understanding of QFT, quantum phase estimation, modular arithmetic, and linear algebra to use this cryptography Skill. It is designed for advanced educational demonstrations and research tasks involving cryptographic vulnerabilities.

How do I simulate Simon's problem and the hidden subgroup problem in Python?

You can simulate Simon's problem and the hidden subgroup problem in Python by running the included Simon examples in this Skill. It involves hands-on circuit construction, simulation, and classical post-processing to recover secret cryptographic quantities.

Can I use this Skill to analyze cryptographic vulnerabilities on real-world production systems?

No, this Skill is intended for educational demonstrations and research tasks, not real-world production systems. It uses Python-based simulations to identify cryptographic vulnerabilities by applying quantum phase estimation to factoring, discrete logarithm, and hidden-subgroup problems.