FlipFlopQuantumRam¶
This module implements the state preparation scheme called FFQRAM see https://arxiv.org/abs/1901.02362.
An DB entry of the FF QRAM scheme |
|
The DB object with methods to create circuits |
|
Add a vector to the DB. |
Each DB has entries that are created by controlled rotations. The final step is a measurement to cancel out the wrong branch. This makes the algorithm probabilistic in its nature.
FFQramEntry¶
FFQramDb¶
add_vector¶
– autofunction:: add_vector
-
class
dc_qiskit_algorithms.FlipFlopQuantumRam.
FFQramEntry
[source]¶ An DB entry of the FF QRAM scheme
-
class
dc_qiskit_algorithms.FlipFlopQuantumRam.
FFQramDb
(*args, **kwds)[source]¶ The DB object with methods to create circuits
-
bus_size
()[source]¶ From all entries get the maximum needed bus size
- Returns
the bus size for the DB
-
add_to_circuit
(qc, bus, register)[source]¶ Add the DB to the circuit.
- Parameters
qc – the quantum circuit
bus – the bus register
register – the target register for the amplitudes
- Returns
the circuit after DB being applied
-