You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,12 +65,12 @@ you can generate .qasm files to use them as subroutines in your own circuits.
65
65
66
66
### Loading Algorithms as PyQASM Modules
67
67
68
-
To load an algorithm as a PyQASM module, use the `load_program` function from the `qbraid_algorithms` package, passing algorithm-specific parameters. For example, to load the Quantum Fourier Transform (QFT) algorithm:
68
+
To load an algorithm as a PyQASM module, use the `generate_program` function from the `qbraid_algorithms` package, passing algorithm-specific parameters. For example, to load the Quantum Fourier Transform (QFT) algorithm:
69
69
70
70
```python
71
71
from qbraid_algorithms import qft
72
72
73
-
qft_module = qft.load_program(3) # Load QFT for 3 qubits
73
+
qft_module = qft.generate_program(3) # Load QFT for 3 qubits
74
74
```
75
75
76
76
Now, you can perform operations with the PyQASM module, such as unrolling, and
0 commit comments