Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 2.16 KB

who.md

File metadata and controls

48 lines (36 loc) · 2.16 KB
title description author uid ms.author ms.date ms.topic
%who (magic command)
Lists the Q# operations available in the current session.
anjbur
microsoft.quantum.iqsharp.magic-ref.who
anburton
07/28/2023
managed-reference

%who

Warning

This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.

The Modern QDK only supports the '%%qsharp' magic command.

Summary

Lists the Q# operations available in the current session.

Description

This magic command returns a list of Q# operations and functions that are available in the current IQ# session for use with magic commands such as %simulate and %estimate.

The list will include Q# operations and functions which have been defined interactively within cells in the current notebook (after the cells have been executed), as well as any Q# operations and functions defined within .qs files in the current folder.

Examples for %who

Example 1

Display the list of Q# operations and functions available in the current session:

In []: %who
Out[]: <list of Q# operation and function names>