public SimpleProtocolAct() { Params = new ProtocolParams(100, 200, Math.PI/8, 3 * Math.PI/8); AllInOneDevice = new AllInOneDevice {ProtocolAct = this}; AllInOneDevice.ForwardProcessFinished += AllInOneDevice_ForwardProcessFinished; AllInOneDevice.BackwardProcessFinished += AllInOneDevice_BackwardProcessFinished; }
public static void Attenuator(QuantumState state, ProtocolParams protocolParams) { state.Timeslot[0] = (state.Timeslot[0] - protocolParams.LaserPhotonNumberMin)/ (protocolParams.LaserPhotonNumberMax - protocolParams.LaserPhotonNumberMin); state.Timeslot[1] = (state.Timeslot[1] - protocolParams.LaserPhotonNumberMin)/ (protocolParams.LaserPhotonNumberMax - protocolParams.LaserPhotonNumberMin); state.Timeslot[2] = (state.Timeslot[2] - protocolParams.LaserPhotonNumberMin) / (protocolParams.LaserPhotonNumberMax - protocolParams.LaserPhotonNumberMin); }