Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kmozurkewich/dwave-factor
Factoring primes with dwave
https://github.com/kmozurkewich/dwave-factor
dwave factoring quantum-computing
Last synced: about 15 hours ago
JSON representation
Factoring primes with dwave
- Host: GitHub
- URL: https://github.com/kmozurkewich/dwave-factor
- Owner: kmozurkewich
- Created: 2025-01-21T15:14:11.000Z (6 days ago)
- Default Branch: main
- Last Pushed: 2025-01-21T15:22:44.000Z (6 days ago)
- Last Synced: 2025-01-21T16:28:27.193Z (6 days ago)
- Topics: dwave, factoring, quantum-computing
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# D-Wave Quantum Factoring
Quantum factorization using D-Wave's quantum annealing computer.
## Setup
1. Create virtual environment:
```bash
python -m venv quantum-env
source quantum-env/bin/activate # Windows: quantum-env\Scripts\activate
```2. Install requirements:
```bash
pip install dwave-ocean-sdk
```3. Configure D-Wave:
```bash
dwave config create # Enter your API token when prompted
```## Usage
Run with a number to factor:
```bash
python factor-d.py 77
```Optional arguments:
```bash
python factor-d.py 77 --max-bits 12 # For larger numbers
```## Requirements
- Python 3.8+
- D-Wave Leap account (free tier available at cloud.dwavesys.com/leap)## Notes
- Maximum input size is limited by quantum hardware constraints
- Results are probabilistic due to quantum annealing nature