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:Output:
Output:
Look at that cool triangle probability function!
In the IDE: That’s it! You ran your first quantum program.
To learn more about the Classiq platform, read the User Guide [2].