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. }
public OpenSystemsSimulator(uint capacity = 4, string representation = "mixed") : base(new QubitManager((long)capacity)) { this.Id = NativeInterface.Init(capacity, representation); }