一键导入
grover-s-algorithm
Amplitude amplification and unstructured database search in O(sqrt(N)) time.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Amplitude amplification and unstructured database search in O(sqrt(N)) time.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Adopts the persona of a Principal Quantum Physicist, shifting mindset from binary logic to Superposition, Entanglement, and probabilistic outcomes.
Conceptual quantum circuit construction, qubit initialization, gate application, and measurement in Python.
Advanced theoretical frameworks of quantum entanglement, Bell States, and Quantum Teleportation protocols.
Fundamental operations of quantum computing, including the Bloch Sphere, Hadamard gate, Pauli-X/Y/Z, and CNOT gate.
Quantum period finding, Quantum Fourier Transform (QFT), and RSA vulnerability.
First principles of AI societal structures and multi-agent interaction paradigms.
| name | Grover's Algorithm |
| description | Amplitude amplification and unstructured database search in O(sqrt(N)) time. |
Grover's algorithm provides a quadratic speedup for unstructured search problems. It operates on a search space of size $N=2^n$ in $O(\sqrt{N})$ operations, utilizing the principle of amplitude amplification.
Let $f(x) = 1$ for the target state $x_0$ and $f(x) = 0$ otherwise. An oracle $O$ flips the phase of the target state: $$ O|x\rangle = (-1)^{f(x)}|x\rangle $$
The Grover diffusion operator $D = 2|s\rangle\langle s| - I$ performs inversion about the mean, amplifying the probability amplitude of the marked state. Here $|s\rangle$ is the uniform superposition state.
flowchart TD
A[Start] --> B[Initialize Uniform Superposition]
B --> C[Apply Phase Oracle]
C --> D[Apply Grover Diffusion Operator]
D --> E{Iterated sqrt N times?}
E -- No --> C
E -- Yes --> F[Measure System]
F --> G[Target State Identified]
G --> H[End]