page_type | languages | products | description | urlFragment | jupyter | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sample |
|
|
Dumping states and operations in Q# notebooks. |
dumping-states-and-operations |
|
This sample demonstrates:
- How to use quantum simulators to view the state of a quantum register.
- How to use quantum simulators to view unitary representations of adjointable operations.
In this sample, you can use Q# to dump useful diagnostics from the quantum simulator provided with the Quantum Development Kit, including states and unitary matrices.
- The Microsoft Quantum Development Kit.
This sample is designed to be run from Jupyter Notebook. From the terminal, run the following command:
jupyter notebook
- Dumping States and Operations.ipynb: Main Q# notebook for this sample.