microsoft/qdk
Publicmirrored from https://github.com/microsoft/qdkAvailable
katas/content/multi_qubit_systems/prepare_basis_state/Verification.qs
14lines · modecode
| 1 | namespace 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 | |