microsoft/qdk

Public

mirrored from https://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
alex/second-api-refactor

Branches

Tags

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

Clone

HTTPS

Download ZIP

katas/content/multi_qubit_systems/prepare_basis_state/Verification.qs

14lines · modecode

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