Skip to content

Prepares a quantum state with amplitudes corresponding to a given array with two methods. Implementation of the paper Black-Box State Preparation without Arithmetic.

Notifications You must be signed in to change notification settings

braqiiit/QuantumStatePreparation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c4387ea · Sep 27, 2022

History

10 Commits
Jun 30, 2022
Jun 30, 2022
Jun 30, 2022
Sep 27, 2022

Repository files navigation

Quantum State Preparation

Implementation of the paper Black-Box Quantum State Preparation without Arithmetic.

Problem statement

Given an array of m decimal values A = ( a 0 , . . . , a m 1 ) such that a i [ 0 , 1 ) , prepare the quantum state | ψ = 1 | | A | | i = 0 m 1 a i | i where | | A | | is the normalization constant, and is equal to the magnitude of the vector represented by A . | | A | | = i = 0 m 1 a i 2

We have access to a black-box a m p which has the following action - a m p | i | z = | i | z a i ( n )

where a i n is the data a i upto n bits of precision.

Contents

The Jupyter notebook covers the following -

  1. Grover's standard state preparation method, which requires calculation of arcsines.
  2. A modified algorithm which does not require any arithmetic computation, but a comparision operation.

About

Prepares a quantum state with amplitudes corresponding to a given array with two methods. Implementation of the paper Black-Box State Preparation without Arithmetic.

Topics

Resources

Stars

Watchers

Forks