microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
katas/content/linear_algebra/normalized_vector/Verification.qs
15lines · modecode
| 1 | namespace Kata.Verification { |
| 2 | import Std.Math.*; |
| 3 | |
| 4 | function NormalizedVector_Reference() : Complex[][] { |
| 5 | return [ |
| 6 | [Complex(-0.6, 0.)], |
| 7 | [Complex(0., 0.8)] |
| 8 | ]; |
| 9 | } |
| 10 | |
| 11 | @EntryPoint() |
| 12 | operation CheckSolution() : Bool { |
| 13 | ArraysEqualC(Kata.NormalizedVector(), NormalizedVector_Reference()) |
| 14 | } |
| 15 | } |
| 16 | |