qbraid_algorithms.qpe.generate_subroutine
- qbraid_algorithms.qpe.generate_subroutine(unitary_filepath, num_qubits=4, quiet=False, path=None)
Creates a QPE subroutine module with user-defined unitary and number of qubits.
- Parameters:
unitary_filepath (
str
) – str Path to a qasm file defining the unitary gate U.num_qubits (
int
) – int Number of qubits to use for the phase estimation register.quiet (bool) – If True, suppresses output messages.
path (str) – The directory path where the QPE subroutine will be created. If None, creates in the current working directory.
- Return type:
None
- Returns:
None