microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.7.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

katas/content/linear_algebra/normalized_vector/Verification.qs

13lines · modecode

1namespace 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