shor
OfficialFactor integers with quantum period finding.
Authorunitarylab
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Shor's algorithm factors a given composite integer efficiently by reducing factoring to quantum period finding and classical post-processing.
Core Features & Use Cases
- Quantum period finding using QPE and IQFT to derive the order r.
- Two circuit implementations: matrix-based modular exponentiation and operator-based modular addition.
- Classical post-processing with continued fractions to extract factors and a retry mechanism for challenging cases.
- Educational and demonstrative use: factor small integers like 15 or 21 to illustrate the workflow.
Quick Start
Use a small factoring example with N=15 using the matrix method to observe factors.
Dependency Matrix
Required Modules
unitarylab
Components
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: shor Download link: https://github.com/unitarylab/quantum-skills/archive/main.zip#shor Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.