Skip to content

derinworks/penr-oz-quantum-dwave-leap-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

penr-oz-quantum-dwave-leap-api-example

Implementation of an example use of the D-Wave Leap Quantum Computing API.

Repository layout

.
├── README.md
├── requirements.txt
├── .gitignore
├── config/
│   └── dwave.conf.example
├── src/
│   ├── __init__.py
│   ├── solvers.py
│   └── sample_problem.py
└── scripts/
    └── run_example.sh

Setup

  1. Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Export your Leap API token:
export DWAVE_API_TOKEN="your-token-here"

Alternatively, copy config/dwave.conf.example to config/dwave.conf and fill in your token.

Run the example

python -m src.sample_problem

Or use the helper script:

scripts/run_example.sh

Optional flags:

python -m src.sample_problem --solver "Advantage_system6.1" --num-reads 200

About

Implementation of an example use of DWave Leap Quantum Computing API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •