PySparQ.pysparq.algorithms.state_preparation¶
Quantum state preparation based on QRAM binary-tree decomposition.
Classes¶
Quantum state-preparation operator based on QRAM binary-tree decomposition. |
|
High-level wrapper managing the full state-preparation pipeline. |
Functions¶
Return a demo script string for state preparation. |
Module Contents¶
- class PySparQ.pysparq.algorithms.state_preparation.StatePrepViaQRAM(qram: object, work_qubit: str, data_size: int, rational_size: int)[source]¶
Quantum state-preparation operator based on QRAM binary-tree decomposition.
- clear_conditions() StatePrepViaQRAM[source]¶
- dag(state: SparseState) None[source]¶
- class PySparQ.pysparq.algorithms.state_preparation.StatePreparation(qubit_number: int, data_size: int, data_range: int)[source]¶
High-level wrapper managing the full state-preparation pipeline.
- get_real_dist() list[float][source]¶
Return the normalized amplitude distribution as a list of floats.