Add RSFQ JoSIM simulation notebook#584
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Agent-Logs-Url: https://github.com/gdsfactory/quantum-rf-pdk/sessions/50eb6d3a-58ea-46ab-ba87-811993887a80 Co-authored-by: nikosavola <7860886+nikosavola@users.noreply.github.com>
Agent-Logs-Url: https://github.com/gdsfactory/quantum-rf-pdk/sessions/50eb6d3a-58ea-46ab-ba87-811993887a80 Co-authored-by: nikosavola <7860886+nikosavola@users.noreply.github.com>
Contributor
Reviewer's GuideAdds a new JoSIM-based RSFQ simulation notebook (with jupytext source) that demonstrates JTL and DC-to-SFQ converter simulations and their mapping to qpdk layout, along with minimal doc and infra updates to integrate the notebook into the docs build and link checking. Sequence diagram for running a JoSIM simulation from the RSFQ notebooksequenceDiagram
actor User
participant Notebook
participant run_josim
participant JoSIM_CLI as josim_cli_binary
participant CSV as output_csv
participant NumPy as numpy
participant Matplotlib as matplotlib
User->>Notebook: execute JTL or DCSFQ cell
Notebook->>run_josim: run_josim(netlist, josim_path)
run_josim->>run_josim: create TemporaryDirectory
run_josim->>run_josim: write circuit.cir
run_josim->>JoSIM_CLI: subprocess.run([josim_path, -o, output.csv, circuit.cir])
JoSIM_CLI-->>run_josim: exit_code, stdout, stderr
run_josim->>run_josim: check returncode
run_josim-->>Notebook: raise RuntimeError on failure
Note over run_josim,Notebook: On success, continue
run_josim->>CSV: read output.csv
CSV-->>run_josim: header_line, data_lines
run_josim->>NumPy: loadtxt(output.csv, delimiter, skiprows)
NumPy-->>run_josim: data_array
run_josim-->>Notebook: (headers, data_array)
Notebook->>Matplotlib: create plots from headers, data_array
Matplotlib-->>User: rendered SFQ pulse and phase plots
Class diagram for the new JoSIM helper and its dependenciesclassDiagram
class josim_rsfq_simulation {
+JOSIM_CLI : str
+run_josim(netlist : str, josim_path : str) tuple_list_str_np_ndarray
}
class tempfile {
+TemporaryDirectory()
}
class pathlib_Path {
+write_text(text : str)
+read_text()
}
class subprocess_module {
+run(args : list_str, capture_output : bool, text : bool, check : bool)
}
class numpy_module {
+loadtxt(fname, delimiter, skiprows) np_ndarray
}
josim_rsfq_simulation --> tempfile : uses
josim_rsfq_simulation --> pathlib_Path : uses
josim_rsfq_simulation --> subprocess_module : uses
josim_rsfq_simulation --> numpy_module : uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Copilot created this pull request from a session on behalf of
nikosavola
May 8, 2026 11:56
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new notebook demonstrating Rapid Single Flux Quantum (RSFQ) circuit simulation using JoSIM, an open-source superconducting circuit simulator.
What's included
New notebook:
notebooks/src/josim_rsfq_simulation.pyThe notebook demonstrates:
single_josephson_junctionandmeander_inductorcomponentsSupporting changes
docs/notebooks.rst— Added "RSFQ circuit simulation" category with the new notebook entry and summary table rowdocs/conf.py— Addedjosim*tonb_execution_excludepatterns(JoSIM requires external binary)docs/bibliography.bib— Added citations for JoSIM (Delport et al. 2019) and RSFQ logic (Likharev & Semenov 1991).github/lychee.toml— Fixed false positive for GitHub URLs with/nsuffix from JSON parsingPrerequisites
JoSIM must be compiled from source (CMake + C++17 compiler). The notebook includes build instructions and is excluded from automated docs execution, similar to the HFSS notebooks.
Checklist
docs/notebooks.rstupdatedSummary by Sourcery
Add an RSFQ circuit simulation notebook using JoSIM and integrate it into the documentation and tooling configuration.
New Features:
Build:
CI:
Documentation: