microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
alex/default-modern-std

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

samples/python_interop/teleportation_project/RunTeleport.py

10lines · modecode

1import 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
8qsharp.init(project_root=".")
9
10print(qsharp.eval("RunTeleport.RunTeleportationExample()"))
11