microsoft/qdk

Public

mirrored from https://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
billt/revert-mimalloc

Branches

Tags

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

Clone

HTTPS

Download ZIP

katas/content/qubit/learn_single_qubit_state/Solution.qs

8lines · modecode

1namespace Kata {
2 open Microsoft.Quantum.Diagnostics;
3
4 operation LearnSingleQubitState (q : Qubit) : (Double, Double) {
5 DumpMachine(); // Only used to learn the amplitudes.
6 return (0.9689, 0.2474);
7 }
8}
9