State Preparation is a cornerstone of quantum algorithms and applications, enabling the initialization of quantum systems into specific states as a starting point for subsequent operations. Its efficiency directly impacts the accuracy and scalability of quantum computations.
A particular interest is the Gaussian state preparation, which is essential for simulating physical systems and tackling problems in quantum chemistry, machine learning, and optimization. Gaussian states, characterized by their Gaussian-shaped wavefunctions, are powerful tools for encoding probability distributions and modeling quantum systems.
This project leverages Classiq's quantum computing SDK to implement a Gaussian state preparation in the interval [-2, 2).
The Gaussian state is defined as:
Where
-
$( G(x) )$ is the normalized Gaussian vector across the discrete domain. -
$( \vec{x} )$ represents the set of discrete points in the domain. -
$( \lambda )$ represents the decay rate, controlled by the variableEXP_RATE
, which determines the spread of the Gaussian. - The denominator ensures normalization across the entire domain.
To use this project, ensure you have the required dependencies installed:
pip install classiq
If running for the first time, authenticate with Classiq:
import classiq
# classiq.authenticate() # Uncomment to authenticate
Run the Jupyter Notebook to execute the Gaussian state preparation algorithm. The implementation initializes and prepares the quantum system in a Gaussian state within the specified interval.
This project includes a requirements.txt
file that lists all the Python packages and their versions used in this project. You can use this file to recreate the exact environment required to run the code.
This project is intended for educational and research purposes. Please ensure compliance with any relevant licensing agreements for the Classiq SDK.