microsoft/qdk

Public

mirrored fromhttps://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/complex_arithmetic/complex_multiplication/Solution.qs

9lines · modecode

1namespace Kata {
2 open Microsoft.Quantum.Math;
3
4 function ComplexMult(x : Complex, y: Complex) : Complex {
5 let (a, b) = x!;
6 let (c, d) = y!;
7 return Complex(a * c - b * d, a * d + b * c);
8 }
9}
10