Skip to main content

View on GitHub

Open this notebook in GitHub to run it yourself
This notebook demonstrates the capability of Classiq’s QPE function, focusing on a case where it is applied on a Grover Operator. This is the core of the Amplitude Estimation algorithm. The demonstration done for a toy model, where the Grover operator is constructed for a “good state” on 5 qubits ∣ψ⟩good∝(∣2⟩+∣3⟩+∣5⟩+∣7⟩+∣11⟩+∣13⟩|\psi\rangle_{\rm good}\propto (|2\rangle+|3\rangle+|5\rangle+|7\rangle+|11\rangle+|13\rangle).

  1. Building a Model with Classiq
Output:

1.1 Constructing the Relevant Quantum Functions

1.2 Synthesizing with Two Different Optimization Scenarios

Output:

  1. Comparing to Qiskit Implementation
The qiskit data was generated using qiskit version 1.
  1. To run the qiskit code uncomment the commented cells below.

  1. Plotting the Data
Output:
output