Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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