| 1 | from pathlib import Path |
| 2 | from qdk import qsharp |
| 3 | |
| 4 | # Import the Q# code from the teleport.qs file |
| 5 | code = (Path(__file__).parent / "sample.qs").read_text(encoding="utf-8") |
| 6 | qsharp.eval(code) |
| 7 | |
| 8 | # Directly invoke the Main operation defined in the loaded file |
| 9 | print(qsharp.code.Main()) |
| 10 | |