Implementation of an example use of the D-Wave Leap Quantum Computing API.
.
├── README.md
├── requirements.txt
├── .gitignore
├── config/
│ └── dwave.conf.example
├── src/
│ ├── __init__.py
│ ├── solvers.py
│ └── sample_problem.py
└── scripts/
└── run_example.sh
- Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate- Install dependencies:
pip install -r requirements.txt- 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.
python -m src.sample_problemOr use the helper script:
scripts/run_example.shOptional flags:
python -m src.sample_problem --solver "Advantage_system6.1" --num-reads 200