Fixed-Point
ampamp.fixed_point
Fixed-Point Amplitude Amplification module.
Provides the FixedPointEngine for running algorithms with monotonic convergence.
FixedPointEngine
Engine for Fixed-Point Amplitude Amplification (FPAA).
Ensures monotonic convergence using Chebyshev-derived phase schedules.
__init__(L, delta)
Initializes the Fixed-Point Engine.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
L
|
int
|
The number of generalized Grover iterations. Must be an odd integer. |
required |
delta
|
float
|
The bound on the error of the fixed-point monotonic convergence. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If L is not an odd integer. |
build_fixed_point_circuit(num_qubits, marked_indices)
Synthesizes the Generalized Grover Iterate sequence.
Constructs the complete quantum circuit utilizing the derived phase schedules.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num_qubits
|
int
|
The total number of qubits in the circuit. |
required |
marked_indices
|
list[int]
|
List of indices representing marked abstract states. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
QuantumCircuit |
QuantumCircuit
|
The constructed fixed-point search quantum circuit. |