page_type | languages | products | description | urlFragment | ||
---|---|---|---|---|---|---|
sample |
|
|
This sample demonstrates using Q# and Python together to perform quantum process tomography. |
qsharp-with-python |
This sample demonstrates the use of Python to call into Q# by using the QInfer and QuTiP Python libraries to study the behavior of a Q# operation.
As this sample demonstrates using Q# and Python together, make sure you have the qsharp
package for Python installed first; see the Getting Started with Python guide for details.
This sample also uses a couple extra Python packages to help out, so you'll need to have those ready as well.
If you are using the Anaconda distribution of Python, this can be done automatically by using the environment.yml
file provided with this sample:
cd samples/characterization/process-tomography
conda env create -f environment.yml
conda activate process-tomography
Once everything is installed, run jupyter notebook
to start the Jupyter Notebook interface in your web browser:
jupyter notebook
In the browser, select the tomography-sample.ipynb
notebook in your browser to
view the sample.
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )