microsoft/qdk
Publicmirrored from https://github.com/microsoft/qdkAvailable
samples/python_interop/teleportation_project/RunTeleport.py
10lines · modeblame
0781c925Moumita1 years ago | 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 | | |
91f754e1Scott Carda1 years ago | 10 | print(qsharp.eval("RunTeleport.Main()")) |