public void GetNoiseModelByNameThrowsExceptionForInvalidNames()
 {
     Assert.Throws <SimulationException>(() => {
         NativeInterface.GetNoiseModelByName("invalid");
     });
 }
 public void GetIdealNoiseModelByNameWorks()
 {
     var ideal = NativeInterface.GetNoiseModelByName("ideal");
     // TODO: Add assertions here to check properties of the above noise model.
 }
 public void GetIdealStabilizerNoiseModelByNameWorks()
 {
     var idealStabilizer = NativeInterface.GetNoiseModelByName("ideal_stabilizer");
     // TODO: Add assertions here to check properties of each noise model.
 }
示例#4
0
 public OpenSystemsSimulator(uint capacity = 4, string representation = "mixed") : base(new QubitManager((long)capacity))
 {
     this.Id = NativeInterface.Init(capacity, representation);
 }