namespace Kata {
open Microsoft.Quantum.Math;
function ComplexAdd(x : Complex, y: Complex) : Complex {
let (a, b) = x!;
let (c, d) = y!;
return Complex(a + c, b + d);
}
}microsoft/qdk
Publicmirrored from https://github.com/microsoft/qdkAvailable
katas/content/complex_arithmetic/complex_addition/Solution.qs
9lines · modepreview