예제 #1
0
        public StackTraceCollector(SimulatorBase sim)
        {
            callStack = new Stack <StackFrame>();
            this.sim  = sim;

            this.Start();
        }
예제 #2
0
 public GetQubitsAvailableToUse(SimulatorBase m) : base(m)
 {
     this.sim = m;
     if (m.QubitManager == null)
     {
         throw new NullReferenceException($"SimulatorBase {m} has a null-valued qubit manager, but a qubit manager is required to implement the GetQubitsAvailableToUse operation.");
     }
     this.manager = m.QubitManager;
 }
예제 #3
0
 public GetQubitsAvailableToBorrow(SimulatorBase m) : base(m)
 {
     sim = m;
 }
예제 #4
0
 public Message(SimulatorBase m) : base(m)
 {
     sim = m;
 }
예제 #5
0
 public Return(SimulatorBase m) : base(m)
 {
     sim = m;
 }
예제 #6
0
 public Borrow(SimulatorBase m) : base(m)
 {
     sim = m;
 }
예제 #7
0
 public Release(SimulatorBase m) : base(m)
 {
     this.sim     = m;
     this.manager = m.QubitManager;
 }
예제 #8
0
 public DrawRandomInt(SimulatorBase m) : base(m) =>
예제 #9
0
 public Message(SimulatorBase m) : base(m) =>
예제 #10
0
 public GetQubitsAvailableToBorrow(SimulatorBase m) : base(m)
 {
     this.sim     = m;
     this.manager = m.QubitManager;
 }
예제 #11
0
 public Borrow(SimulatorBase m) : base(m)
 {
     this.sim     = m;
     this.manager = m.QubitManager;
 }
예제 #12
0
 public Allocate(SimulatorBase m) : base(m)
 {
     this.manager = m.QubitManager;
 }