View on GitHub
Open this notebook in GitHub to run it yourself
Build Your Algorithm
In the IDE: To start writing your quantum model, click theModel tab.
Build the Model
In the IDE: Here you define the model, function parameters, and more. See the User Guide [2] for details. Below is the SDK representation of the Qmod syntax shown on the IDE page:Synthesize the Model
In the IDE: Now that you have selected or built a model, click the “Synthesize” button, sit back, and let Classiq do its magic! Below is the SDK representation of the Qmod syntax shown on the IDE page:Output:
Output:
Congratulations!
In the IDE: This is your first quantum program. Learn more in the User Guide [2].Run on Quantum Hardware or Simulators
In the IDE: Click ‘Execute’ to define the quantum hardware or a quantum simulator to run your synthesized quantum program.Define Execution Details
In the IDE: Select which quantum program to execute, define the execution parameters, and choose a quantum provider and backend platform. The Classiq platform is your gateway to all major quantum computing providers.Run on a Quantum Simulator!
In the IDE: Click ‘Run’ to execute your quantum program on the simulator you chose in the previous step. Below is the SDK execution code:| io | count | probability | bitstring | |
|---|---|---|---|---|
| 0 | [1, 1, 1, 1, 1] | 136 | 0.066406 | 11111 |
| 1 | [1, 0, 1, 1, 1] | 132 | 0.064453 | 11101 |
| 2 | [0, 1, 1, 1, 1] | 124 | 0.060547 | 11110 |
| 3 | [0, 1, 0, 1, 1] | 114 | 0.055664 | 11010 |
| 4 | [0, 0, 0, 1, 1] | 113 | 0.055176 | 11000 |