Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Latest commit

 

History

History
54 lines (40 loc) · 1.75 KB

File metadata and controls

54 lines (40 loc) · 1.75 KB
page_type languages products description urlFragment jupyter
sample
qsharp
qdk
Visualizing quantum programs in Q# notebooks.
visualization
jupytext kernelspec
cell_markers text_representation
region,endregion
extension format_name format_version jupytext_version
.md
markdown
1.2
1.5.2
display_name language name
.NET (PowerShell)
PowerShell
.net-powershell

Visualizing Quantum Programs

This sample demonstrates:

  • Using %trace to visualize the execution path of a Q# program.
  • Using %debug to step through the execution of a Q# program.

In this sample, you can use the %trace and %debug magic commands provided in Q# notebooks to visualize the execution path of a Q# program and to analyze the state of the quantum registers at each step of the program.

Prerequisites

Running the Sample

This sample is designed to be run from Jupyter Notebook. To set up your development environment to run Jupyter Notebooks, follow the steps explained in the Q# Quickstart: Jupyter guide.

Once this is set up, from the terminal, you can run the following command:

jupyter notebook

Manifest

Further resources