Please see full documentation here: JoSIM Documentation
JoSIM was developed under IARPA contract SuperTools(via the U.S. Army Research Office grant W911NF-17-1-0120).
JoSIM is an open-source transient circuit simulator for superconducting electronics, including Josephson junctions. It reads SPICE-style netlists and solves the resulting sparse system with KLU. Voltage and phase analysis are available through a command-line executable and a C++ library.
JoSIM implements the RCSJ junction model, parameter expressions and hierarchical subcircuits. Results can be written as CSV, DAT or raw SPICE output. Gate-controlled junctions and white/colored noise sources are also supported.
JoSIM takes a .cir file as input and produces a .dat/.csv file as output.
Prebuilt binaries can be found here:
Source builds require C++17, C11 and CMake/CTest 3.21 or newer:
cmake -S . -B build/dev -DCMAKE_BUILD_TYPE=Release
cmake --build build/dev --config Release --parallel 4
ctest --test-dir build/dev -C Release --output-on-failure --timeout 90
build/dev/josim-cli -o build/example.csv test/ex_dcsfq_jtl_sink.cirWindows uses build/dev/Release/josim-cli.exe with a multi-configuration
generator. See the build instructions for dependencies
and installed-library consumers, and compatibility guidance
for changes affecting existing circuits and C++ applications.
Referencing:
JoSIM — Superconductor SPICE Simulator
If you find this tool useful, you can help keep it alive by

or via
- Build and test instructions
- Binary targets and release procedure
- Changelog
- Gate-controlled junctions and noise sources
See CHANGELOG.md for the full list of recent changes.
- Added
BETA_CforRTYPE=0junctions, capacitor initial voltages and quadratic nonlinear inductors. - Corrected voltage-mode mutual-inductor history ordering.
- C++ applications must rebuild with matching 3.1 headers and libraries; the shared-library ABI is now 4.
- See the release notes for syntax, examples and model limits.
- Added gate-controlled junctions, power-law and flux noise sources.
- Added circuit parameter sweeps and model IV timing controls.
- Fixed subcircuit parameters, phase accumulation, startup and noise calculations.
- Updated the C++ library, builds, plotting scripts and documentation.
- See CHANGELOG.md for details.
- Added ability to specify seed for RNG through
.option seed=command. - Current run seed can be shown using verbose command.
- Added piece-wise sinusoidal (PWS) syntax to syntax guide documentation.
- Expanded sinusoid parameters to include phase offset and number of cycles. Now allows non-continuous sinusoid.
- Collection of bug fixes, code & code cleanup.
- Cleaned up warnings during compilation.
- Fixed a bug resulting in sub optimal performance in the custom function.
- Fixed a bug resulting in bad optional access when shorting transmission line components.
- Add a fix to warn of subcircuit redefenitions. Redefintions now overwrite the previous definition.
- Add a fix when parameters are used in subcircuits but defined within the global scope.
- Added ability to parameterize time points specified for
.tranandpwlcommands.
- Fixed a bug in noise source generation when noise step is less than or equal to the simulation step.
- Reduced aggressiveness of timestep scale down when close to transmission line step delay size. Now only scales down if TX delay is less than 1 step (previously 4)
- Added output dimensions option to josim-plot script when writing directly to PDF, SVG, EPS, etc.
- Updated the CPR specification in the JJ model to allow multiple simulataneous harmonics.
- Added a Notepad++ UDL syntax highlighting script to the scripts folder.
- Added the ability to specify CPR in the JJ model to enable non-sinusoidal CPRs needed for pi-junctions.
- Fixed a bug where Windows and CentOS parameters do not coincide. Issue was due to expression substitution.
- Fixed sp_generator.py having invalid tab spacing
- Fixed Area= and Ic= JJ parameters not producing the same result for the same critical current
- Fixed an issue with custom waveform where it wasn't reading from the file properly
- Added spline method for cubic interpolation of custom waveform
- Moved entire codebase to 64bit integers to allow larger/longer simulations
- Fixed parameters
- Fixed transmission line integer step delay rounding issue that caused an error build up
- Full Johnson-Nyquist temperature noise for Resistors and Resistive branch of RCSJ model
- Phi-junction model with verified Pi junction results
- Various bug fixes and code clean up
- Updated KLU to a 64-bit version capable of handling non-zero count larger than the maximum value of a 32-bit integer.
- Included SuperLU 64-bit that can be activated using the -x 1 switch (default 0 for KLU).
- Bug fixes to pulse command.
- Fixed an issue with comparison of double values for small numbers between various compilers.
- Fixed a initial values when converting between phase and voltage when simulation output does not start at 0.
- Fixed a bug in output conversion when plotting voltage in a phase simulation and vice versa.
- Fixed comparison function for GCC interpretation of double values
- Fixed an issue with the pulse command producing incorrect pulses
- Fixed an issue where timesteps smaller than 10fs were causing out-of-range issues
- Various other bug fixes
- Fixed a major issue with relative paths not being correctly evaluated causing files to not be found even though the correct path was specified.
- Added .spread command. See documentation for more details.
- Added .file command. See documentation for more detauls.
- Added .iv command. See documentation for more details.
- Fixed a bug where .neb value was not being read properly
- Fixed a bug where pulse source type was outputting incorrect number of pulses.
- Fixed a bug where custom waveform was not allowing cubic interpolation method.
- Code cleanup.
- Phase mode is now the standard analysis mode. Produces the exact same results as voltage.
- Trapezoidal method has been replaced by superior 2nd order Gear method.
- JoSIM now internally determines the convention. (-c option removed)
- New progress indicators added. Spawns a seperate non blocking thread.
- New verbose modes. 1: Circuit statistics. 2: 1 + Parameters and evaluated values. 3: 2 + Complete expanded netlist.
- New DC source type. I.e. V01 1 0 DC 5V
- JJ has new IC= parameters that supersedes AREA= but ultimately performs similar model parameter scaling.
- Fixed NOISE source type to have syntax NOISE(AMP TD TSTEP)
- New '.temp' and '.neb' commands for noise thermal noise analysis
- Transient simulation command now allows PRSTART and PRSTEP commands. .tran TSTEP TSTOP PRSTART PSTEP
- Various memory improvements and overall speed-up
- Reduced output file size.
- Rewrote documentation: JoSIM Documentation
- Various bug fixes
- Fixed an issue where "GND" was not recognized as ground, creating a new node causing matrix singularity.
- Fixed an issue with multiport devices (TX, CCCS, CCVS, VCCS, VCVS) not adding the 3rd and 4th node to the node map.
- Fixed an issue with multiport devices not expanding properly if part of subcircuits.
- Various other bug fixes
- Complete rewrite of core internals
- Modularization of each component allowing easier implementation of integration methods
- Error reporting major improvment. Less random exits with no warnings. Better exits.
- Focus on object orientation for improved library access
- Speed up of matrix creation algorithm
- Improvements to output format
- Inclusion of '.include' control card
- Capability to read from standard in using '-i' command
- Various bug fixes
- Major changes to JoSIM internal engine
- Removal of plotting engines in favor of external tools such as Python
- Introduction of pyJoSIM and libjosim packages
- Immense speed-up of internals
- Various bug fixes
- Major rewrite of most of JoSIM code to accommodate library creation for use in C++ and Python
- Implementation of a phase source for use in phase-mode simulation
- Inclusion of the Haberkorn junction current which allows for user switching between ballistic and normal electron tunneling
- Various bug fixes
- New analysis method that allows Modified Nodal Phase Analysis (see ReadMe)
- Major memory improvement by not creating intermediate A matrix
- Various bug fixes
- Addition of mutual inductance with the netlist label K
- Addition of the sinusoidal source (Voltage and Current)
- Various bug fixes
- AQFP now works
- New Release brings RType=1 to the RCSJ model of the Josephson Junction.
- Various bugs have been fixed.
- Data structures have been majorly altered.
- Other changes and fixes
- Ability to change between plotting libraries (NONE, FLTK or Matplotlib [Default])
- Major bug fixes
- JoSIM now supports WRSpice syntax (mostly)
- Parameterization of component values with expression parsing
- Code cleanup and commenting
- Initial release of JoSIM
- Default FLTK plotting engine
- Replaces JSIM as default simulator