load_algorithm
function from the qbraid_algorithms
package, passing algorithm-specific parameters. For example, to load the Quantum Fourier Transform (QFT) algorithm:
.qasm
Filesgenerate_subroutine
function for your desired algorithm. By passing algorithm-specific parameters, and optionally a desired output path, you can
generate a .qasm file containing a subroutine for the parameterized circuit. For
example, to generate a QFT subroutine for 4 qubits:
include "qft.qasm";
to your OpenQASM file, and call the
subroutine. For example: