microsoft/qdk

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.3.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

katas/content/complex_arithmetic/complex_modulus/Solution.qs

8lines · modeblame

e2e601daPhilip Kane2 years ago1namespace Kata {
2open Microsoft.Quantum.Math;
3
4function ComplexModulus(x : Complex) : Double {
5let (a, b) = x!;
6return Sqrt(a * a + b * b);
7}
8}