PySparQ.pysparq.algorithms.grover¶
Grover’s Quantum Search Algorithm Implementation
Classes¶
HPH (Hadamard-Phase-Hadamard) diffusion operator. |
|
Combined Grover operator: Oracle followed by Diffusion. |
|
Oracle for Grover's search that marks target values. |
Functions¶
|
Generate a demo script for Grover's algorithm. |
|
Quantum counting variant of Grover's algorithm. |
|
Execute Grover's search to find target in memory. |
Module Contents¶
- class PySparQ.pysparq.algorithms.grover.DiffusionOperator(addr_reg: str | int)[source]¶
HPH (Hadamard-Phase-Hadamard) diffusion operator.
- class PySparQ.pysparq.algorithms.grover.GroverOperator(qram: pysparq.QRAMCircuit_qutrit, addr_reg: str | int, data_reg: str | int, search_reg: str | int)[source]¶
Combined Grover operator: Oracle followed by Diffusion.
- diffusion: DiffusionOperator[source]¶
- oracle: GroverOracle[source]¶
- class PySparQ.pysparq.algorithms.grover.GroverOracle(qram: pysparq.QRAMCircuit_qutrit, addr_reg: str | int, data_reg: str | int, search_reg: str | int)[source]¶
Oracle for Grover’s search that marks target values.
- PySparQ.pysparq.algorithms.grover.create_grover_demo() str[source]¶
Generate a demo script for Grover’s algorithm.