microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
alex/second-api-refactor

Branches

Tags

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

Clone

HTTPS

Download ZIP

katas/content/complex_arithmetic/complex_addition/Placeholder.qs

11lines · modecode

1namespace Kata {
2 open Microsoft.Quantum.Math;
3
4 function ComplexAdd(x : Complex, y : Complex) : Complex {
5 // Extract real and imaginary components of the inputs.
6 let (a, b) = x!;
7 let (c, d) = (y::Real, y::Imag);
8 // Implement your solution here...
9 return Complex(0., 0.);
10 }
11}
12