QuantumStatePreparation
Prepares a quantum state with amplitudes corresponding to a given array with two methods. Implementation of the paper Black-Box State Preparation without Arithmetic.
Install / Use
/learn @braqiiit/QuantumStatePreparationREADME
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 \in [0, 1)$, prepare the quantum state $$|\psi\rangle = \frac{1}{||A||}\sum_{i=0}^{m-1}a_i|i\rangle$$ where $||A||$ is the normalization constant, and is equal to the magnitude of the vector represented by $A$. $$||A|| = \sqrt{\sum_{i=0}^{m-1}{a_i}^2}$$
We have access to a black-box $amp$ which has the following action - $$amp|i\rangle|z\rangle = |i\rangle|z \oplus a_{i}^{(n)}\rangle $$
where $a_{i}^{n}$ is the data $a_{i}$ upto $n$ bits of precision.
Contents
The Jupyter notebook covers the following -
- Grover's standard state preparation method, which requires calculation of arcsines.
- A modified algorithm which does not require any arithmetic computation, but a comparision operation.
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
