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