Submitting Problems and Visualizing Results

Submitting Problems

A problem is formulated in a Python program, which you run to submit the problem to a solver.

To run a Python program, open the program file and click the Run icon Run Python File in Terminal (in the top right corner of the Leap IDE) or execute the following command in a terminal:

python <file_name>.py
<file_name>

The file name of the program.

Tip

Although a terminal is opened automatically when you open a workspace, you can also open one by selecting the Terminal > New Terminal menu.

The results are returned and displayed in the terminal.

To run a Jupyter Notebook, open the <file_name>.ipynb file and run one of the code cells by clicking the Run icon Run Python File in Terminal in the code cell. The results are displayed below the code in the cell.

Visualizing Problem Results in the Problem Inspector

The D-Wave problem inspector provides a graphical interface for examining a D-Wave quantum computer’s problem results. To learn how to implement the code to visualize the problem results and display other information in the problem inspector, see problem inspector in the Ocean documentation.