Example #1
0
 /// <summary>
 /// Constructs a new operation instance.
 /// </summary>
 /// <param name="m">The simulator that this operation affects.</param>
 public SWAP(ToffoliSimulator m) : base(m)
 {
     simulator = m;
 }
Example #2
0
 /// <summary>
 /// Constructs a new operation instance.
 /// </summary>
 /// <param name="m">The simulator that this operation affects.</param>
 public Measure(ToffoliSimulator m) : base(m)
 {
     this.simulator = m;
 }
Example #3
0
 /// <summary>
 /// Constructs a new operation instance.
 /// </summary>
 /// <param name="m">The simulator that this operation affects.</param>
 public S(ToffoliSimulator m) : base(m)
 {
 }
 public TSBorrow(ToffoliSimulator m) : base(m)
 {
     simulator = m;
 }
 public TSReturn(ToffoliSimulator m) : base(m)
 {
     simulator = m;
 }
Example #6
0
 /// <summary>
 /// Constructs a new operation instance.
 /// </summary>
 /// <param name="m">The simulator that this operation affects.</param>
 public AssertProb(ToffoliSimulator m) : base(m)
 {
     this.simulator = m;
 }
 public TSRelease(ToffoliSimulator m) : base(m)
 {
     simulator = m;
     manager   = m.QubitManager;
 }
Example #8
0
 /// <summary>
 /// Constructs a new operation instance.
 /// </summary>
 /// <param name="m">The simulator that this operation affects.</param>
 public Exp(ToffoliSimulator m) : base(m)
 {
     simulator = m;
 }
Example #9
0
 /// <summary>
 /// Constructs a new operation instance.
 /// </summary>
 /// <param name="m">The simulator that this operation affects.</param>
 public DumpRegister(ToffoliSimulator m) : base(m)
 {
     this.simulator = m;
 }
Example #10
0
 /// <summary>
 /// Constructs a new operation instance.
 /// </summary>
 /// <param name="m">The simulator that this operation affects.</param>
 public DumpMachine(ToffoliSimulator m) : base(m)
 {
     this.simulator = m;
 }
Example #11
0
 /// <summary>
 /// Constructs a new operation instance.
 /// </summary>
 /// <param name="m">The simulator that this operation affects.</param>
 public ToffSimRandom(ToffoliSimulator m) : base(m)
 {
     Simulator = m;
 }
Example #12
0
 /// <summary>
 /// Constructs a new operation instance.
 /// </summary>
 /// <param name="m">The simulator that this operation affects.</param>
 public RFrac(ToffoliSimulator m) : base(m)
 {
     simulator = m;
 }