microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
samples/python_interop/teleportation_project/RunTeleport.py
10lines · modecode
| 1 | import qsharp |
| 2 | |
| 3 | # set the root folder for the Q# project |
| 4 | # the root folder of a Q# project is where the qsharp.json file is located |
| 5 | # make adjustments to the path depending on the location of the qsharp.json file |
| 6 | |
| 7 | # this example assumes your Python program is in the same folder as the qsharp.json file |
| 8 | qsharp.init(project_root=".") |
| 9 | |
| 10 | print(qsharp.eval("RunTeleport.Main()")) |