microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
katas/content/multi_qubit_systems/prepare_with_complex/Verification.qs
16lines · modecode
| 1 | namespace 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 | |