예제 #1
0
 public void TestTarget(TestOperation op)
 {
     using (var sim = new CounterSimulator())
     {
         // OnLog defines action(s) performed when Q# test calls function Message
         sim.OnLog += (msg) => { output.WriteLine(msg); };
         sim.OnLog += (msg) => { Debug.WriteLine(msg); };
         op.TestOperationRunner(sim);
     }
 }
예제 #2
0
 public Allocate(CounterSimulator m) : base(m)
 {
     _sim = m;
 }
예제 #3
0
 public GetOracleCallsImpl(CounterSimulator m) : base(m)
 {
     _sim = m;
 }
예제 #4
0
 public GetMaxQubitCountImpl(CounterSimulator m) : base(m)
 {
     _sim = m;
 }
예제 #5
0
 public ResetQubitCountImpl(CounterSimulator m) : base(m)
 {
     _sim = m;
 }
예제 #6
0
 public Release(CounterSimulator m) : base(m)
 {
     _sim = m;
 }