This demo showcases the improved performance of an Advantage2 system, relative to an Advantage system, by generating 1000 random spin-glass problem samples on a highest-yielded intersecting graph and comparing resulting energies of each system. The demo allows for customization of the systems' annealing protocol and the problems' weight distribution and precision.
You can run this example without installation in cloud-based IDEs that support the Development Containers specification (aka "devcontainers") such as GitHub Codespaces.
For development environments that do not support devcontainers
, install requirements:
pip install -r requirements.txt
If you are cloning the repo to your local system, working in a virtual environment is recommended.
Your development environment should be configured to access the Leap™ quantum cloud service. You can see information about supported IDEs and authorizing access to your Leap account here.
Run the following terminal command to start the Dash application:
python app.py
Access the user interface with your browser at http://127.0.0.1:8050/.
The demo program opens an interface where you can configure problems and submit these problems to a solver.
Configuration options can be found in the demo_configs.py file.
Note
If you plan on editing any files while the application is running, please run the application
with the --debug
command-line argument for live reloads and easier debugging:
python app.py --debug
The Advantage and Advantage2 systems are compared by measuring the energies of 1000 random spin-glass problem samples of customizable weight precision and distribution.
Advantage2 System: Choose from a list of Advantage2 systems available through your Leap account. D-Wave's Advantage2 system features a Zephyr™ topology with over 4,400 qubits and 40,000 couplers.
Advantage System: Choose from a list of Advantage systems available through your Leap account.
Weight Distribution: The strategy for choosing weights.
- Uniform: Generates problem samples where the weights are sampled uniformly.
- Power Law: Generates problem samples where the weights are sampled according to a power law distribution.
For more information, see the documentation on generators.
Weight Precision: Weights will be chosen between -/+ the precision value, based on the distribution above.
Random Seed: Allows for repeated problem runs by sampling the weights in predictable manner.
Anneal Type: Standard or Fast. Fast anneal enables anneal execution in a coherent regime (when the anneal is fast enough to have minimal interference from its environment) and thus allows for a larger range of values for the annealing time.
Annealing Time: Measured in microseconds. Setting "Anneal Type" to "Fast" allows for an expanded range of annealing time values.
"Performance gains in the D-Wave Advantage2 system at the 4,400-qubit scale", 14-1083A-A (D-Wave Whitepaper, 2025). https://www.dwavequantum.com/media/wakjcpsf/adv2_4400q_whitepaper-1.pdf
Released under the Apache License 2.0. See LICENSE file.