RP Photonics logo
RP Photonics
Modeling & Design Software
Technical consulting services on lasers, nonlinear optics, fiber optics etc.
Profit from the knowledge and experience of a top expert!
Powerful simulation and design software.
Make computer models in order to get a comprehensive understanding of your devices!
Success comes from understanding – be it in science or in industrial development.
The famous Encyclopedia of Laser Physics and Technology – available online for free!
The ideal place for finding suppliers for many photonics products.
Advertisers: Make sure to have your products displayed here!
powerful tools for efficient laser development and laser science
This page gives you an overview on our software products.
RP Fiber Calculator is a convenient tool for calculations on optical fibers.
RP Fiber Power is an extremely flexible tool for designing and optimizing fiber devices.
RP Resonator is a particularly flexible tool for laser resonator design.
RP ProPulse can simulate the pulse evolution e.g. in mode-locked lasers and sync-pumped OPOs.
RP Coating is a particularly flexible design tool for dielectric multilayer systems.
RP Q-switch can simulate the power evolution in Q-switched lasers.
Most of our software products support a powerful script language, which gives you an extraordinary degree of flexibility.
Here you learn about software license conditions, updates and upgrades, etc.
Competent technical support is a key quality associated with software from RP Photonics.
RP Photonics has distributors in various countries.
The RP Photonics Software News keep you updated on our developments and give the users additional interesting hints.
Here you can make inquiries e.g. concerning technical details, prices and quotations.
en | de

The Software “RP Q-switch”

A Convenient Tool for Designing Q-Switched Lasers

The software package RP Q-switch has been developed for calculations on actively or passively Q-switched solid-state lasers, and of spiking phenomena in continuous-wave lasers. Based on given parameters of the laser cavity and the gain medium, it numerically simulates the evolution of the laser power and calculates the parameters of generated pulses. The software is a valuable tool particularly for the design of actively or passively Q-switched solid-state lasers. (For fiber lasers, and in some cases even for bulk lasers, the software RP Fiber Power is more suitable.) It can also be used for educational purposes. For example, a laser designer can develop a deeper understanding of Q-switched lasers by working with this simulation software.

The software can be used for addressing the following kinds of questions, for example:

User licenses are available both for commercial application in laser companies and for universities and other educational institutions. Contact RP Photonics to inquire about the conditions.

Key Features

  • The user can define an arbitrary sequence of the following kinds of intracavity optical elements: laser crystal, output coupler mirror, modulator (active Q switch), saturable absorber (passive Q switch), and parasitic losses.
  • Both four-level lasers and quasi-three-level lasers can be treated. This means that the software can also be applied to Yb:YAG lasers, for example.
  • There can also be up to three different amplification stages outside the laser cavity. Their saturation characteristics are modeled in detail.
  • The software can calculate pulse parameters like energy, peak power, duration, and temporal position. Also, it can be used for monitoring various other parameters of interest for the laser engineer, such as the temporal evolution of the laser gain or the bleaching of a saturable absorber.
  • For continuous-wave lasers, spiking and relaxation oscillations can be investigated.
  • The pump power may be modulated with several formats (e.g. rectangular, sinusoidal, or saw tooth).
  • Various unwanted phenomena can be studied in detail, e.g. performance degradation due to limited modulator speed, multiple pulses for too long opening time of the modulator, etc.
  • Input and output of parameters is done via a convenient form, so that it is very easy for new users to get started.
  • The software can generate graphical output, which can be controlled in a very flexible way. There are eight predefined kinds of graphs, and the users can define many other kinds of plots (including parametric ones) themselves.
  • It is also possible to write tabulated data to a text file. In this way, data can be exported for further processing with other software.

If required, RP Photonics can develop special versions with additional features.

RP Q-switch runs on a PC under Windows 2000, Windows NT, or Windows XP. A screen resolution of 1024 x 768 or higher is recommended, but not strictly required.

A Possible Alternative

Note that the software RP Fiber Power can also be used for simulating Q switching. Although that software has been designed for use with fiber lasers, it can also be applied to most end-pumped bulk lasers. RP Fiber Power can fully take into account the transverse profiles of field intensities and doping concentration, and it can treat complicated energy level schemes. Also, the flexibility is substantially higher than that of RP Q-switch. For example, RP Fiber Power can handle arbitrary time dependencies of pump powers and signal inputs and a wider range of graphical diagrams. For these reasons, RP Fiber Power is recommended for more sophisticated simulations, whereas RP Q-switch is the right tool for very quickly getting results in simpler situations.


The RP Q-switch software comes with detailed documentation. Even without buying the software, you can download the detailed RP Q-switch documentation in PDF format here in order to get some impression. The running software can display the full documentation or detailed information on particular input or output fields of the forms (see below).

License Conditions

Contact RP Photonics to learn about license conditions. The commercial software license includes up to eight working hours of support, to be used on technical issues with the software and the underlying model, or for advice on laser dynamics, Q-switched laser design, and alike.

This software is further improved from time to time. Customers in possession of a license will usually obtain updated versions without paying any additional fees.

Note that buying a license is not the only possibility: you may also let RP Photonics do the calculations. You will then receive the calculated results together with interpretations and resulting recommendations e.g. for your laser design. You then only pay for the work on an hourly basis, but don't require a software license yourself, nor the time to learn the details.

Screen Shot

The figure below shows a screen shot of the main form of RP Q-switch. The user does not need to learn some command syntax, but simply has to fill the data into the given fields. A brief description of the meaning of an input field is given in the status line (at the bottom); longer texts can be displayed by pressing the Shift-F1 key.

There are separate forms for the parameter of the gain medium and for the parameters of the external amplifier stages.

screen shot of RP Q-switch

(Here, the panel "Passive Q switch" is hidden, because in the field "component order" no "A" for "absorber" has been included.)

Examples for Graphical Output of RP Q-switch

The following diagrams all apply to the example of an actively Q-switched Nd:YAG laser.

dynamics of an actively Q-switched Nd:YAG laser

Figure 1: Temporal evolution of gain, losses, and laser power for an actively Q-switched Nd:YAG laser after switching on the pump source. Logarithmic scaling of the axes would also be possible.

dynamics of an actively Q-switched Nd:YAG laser

Figure 2: Magnified portion of the figure above, showing the pulse profile and the partial saturation of the laser gain.

pulse evolution in phase space

Figure 3: Pulse evolution in phase space: parametric plot with power versus laser gain.

influence of modulator speed

Figure 4: Influence of the switching speed of the active Q switch on the laser performance.