Primitives#
This submodule of Qrisp provides a collection of commonly used buildings blocks to build larger algorithms. Each function comes with comprehensive documentation and brief examples to help you understand its implementation and usage:
ALGORITHM |
USED FOR |
---|---|
periodicity detection and phase estimation |
|
estimating the eigenvalues of a unitary operator |
|
enhancing amplitude of a target state |
|
estimating the amplitude of a target state |
|
resource efficient quantum amplitude estimation |
|
provides functions for applying diagonal Hamiltonians given by polynomials |
|
unstructured search |
|
preparation of Dicke states, i.e., states with a given Hamming weight |
|
Iterable Demuxing, Shifting, and Permutation |
low-level manipulations of quantum arguments like QuantumVariable or QuantumArray |
prepare a quantum state with given amplitudes |
|
Executes a switch statement. The condition can be a QuantumVariable. |
|
several arithmetic functions that allow better control over precision and output types than the infix version |
We encourage you to explore these algorithms, delve into their documentation, and experiment with their implementations.