qbraid_algorithms.qpe.load_program
- qbraid_algorithms.qpe.load_program(unitary_filepath, psi_filepath, num_qubits=4, include_measurement=True)
Load the Quantum Phase Estimation (QPE) program as a pyqasm module.
- Parameters:
num_qubits (
int
) – int Number of qubits to use for the phase estimation register.unitary_filepath (
str
) – str Path to a qasm file defining the unitary gate U.psi_filepath (
str
) – str Path to a qasm file defining the eigenstate preparation gate.include_measurement – bool If True, includes measurement operations in the returned QPE circuit.
- Return type:
QasmModule
- Returns:
(PyQasm Module) pyqasm module containing the QPE circuit