microsoft/qdk

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
billt/revert-mimalloc

Branches

Tags

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

Clone

HTTPS

Download ZIP

katas/content/multi_qubit_systems/prepare_with_complex/Verification.qs

16lines · modecode

1namespace Kata.Verification {
2 open Microsoft.Quantum.Katas;
3
4 operation PrepareWithComplex_Reference(qs : Qubit[]) : Unit is Adj + Ctl {
5 H(qs[0]);
6 H(qs[1]);
7 S(qs[0]);
8 T(qs[1]);
9 }
10
11 @EntryPoint()
12 operation CheckSolution() : Bool {
13 CheckOperationsEquivalenceOnZeroStateWithFeedback(Kata.PrepareWithComplex,
14 PrepareWithComplex_Reference, 2)
15 }
16}
17