Skip to content

feat: enhance SLH display with detailed descriptions - #41

Open
oameye wants to merge 1 commit into
mainfrom
show-SLH
Open

feat: enhance SLH display with detailed descriptions#41
oameye wants to merge 1 commit into
mainfrom
show-SLH

Conversation

@oameye

@oameye oameye commented Aug 6, 2026

Copy link
Copy Markdown
Member
julia> G_u                                  julia> SLH([r τ; τ -r], [0, 0], 0)
SLH{1} with 1 port                          SLH{2} with 2 ports
  S = 1×1 identity                            S = 2×2 symbolic
  L = 1 symbolic jump operator                L = 2 jump operators (all zero)
  H = 0                                       H = 0

julia> cascade(G_u, G_c, G_v)               julia> SLH(1, sparse(a), sparse(a'a))
SLH{1} with 1 port                          SLH{1} with 1 port
  S = 1×1 identity                            S = 1×1 identity
  L = 1 symbolic jump operator                L = 1 numeric jump operator (5×5)
  H = symbolic, 7 terms                       H = numeric, 5×5

julia> SLH(1, L_of_t, H_num)                julia> [G_u, G_c]
SLH{1} with 1 port                          [SLH{1} with 1 port, SLH{1} with 1 port]
  S = 1×1 identity
  L = 1 time-dependent jump operator
  H = time-dependent

@oameye oameye linked an issue Aug 6, 2026 that may be closed by this pull request

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark Results

Details
Benchmark suite Current: 08bb567 Previous: dab446f Ratio
Correlations/two-time/single photon cavity 186757450 ns 185359501 ns 1.01
Interaction Picture/coefficient matrix M/analytical (2 equal modes) 14031 ns 13324 ns 1.05
Interaction Picture/coefficient matrix M/numerical (ODE) 69335 ns 68980 ns 1.01
Interaction Picture/coupling matrix evaluation/2 modes 111.5010752688172 ns 96.26027397260275 ns 1.16
Interaction Picture/coupling matrix evaluation/4 modes 211.31851851851852 ns 194.76426426426426 ns 1.08
Interaction Picture/operator substitution/TLS cascade 19319 ns 17653 ns 1.09
Pulse Couplings/multi-pulse/input 2 modes 426402 ns 415828 ns 1.03
Pulse Couplings/multi-pulse/output 2 modes 481565 ns 475458 ns 1.01
Pulse Couplings/single-pulse/input 347062 ns 370696 ns 0.94
Pulse Couplings/single-pulse/input Gaussian 95.32180293501048 ns 89.67640918580376 ns 1.06
Pulse Couplings/single-pulse/output 386782 ns 404718 ns 0.96
Pulse Couplings/single-pulse/output Gaussian 97.60252365930599 ns 102.32161874334399 ns 0.95
SLH Algebra/closure evaluation/2-QD waveguide H(t) 36876 ns 34905 ns 1.06
SLH Algebra/closure evaluation/2-QD waveguide L(t) 3491.5 ns 3286.125 ns 1.06
SLH Algebra/numeric/2-QD waveguide composition 31407 ns 30958 ns 1.01
SLH Algebra/symbolic/3-cavity cascade 7934.5 ns 7018 ns 1.13
SLH Algebra/symbolic/concatenate + cascade 2475.8888888888887 ns 2194.1111111111113 ns 1.13
SLH Algebra/symbolic/feedback OPO loop 6940.6 ns 6193.8 ns 1.12
Translation/closure evaluation/3-cavity H(t) 8572 ns 8436 ns 1.02
Translation/closure evaluation/3-cavity L(t) 8493 ns 8616 ns 0.99
Translation/static/atom-cavity 34251 ns 45235 ns 0.76
Translation/time-dependent/3-cavity H+L 535106 ns 604071 ns 0.89
Translation/time-dependent/atom-cavity 98028 ns 131576 ns 0.75

This comment was automatically generated by workflow using github-action-benchmark.

@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.11%. Comparing base (dab446f) to head (08bb567).

Files with missing lines Patch % Lines
src/SLH.jl 95.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #41      +/-   ##
==========================================
- Coverage   97.31%   97.11%   -0.21%     
==========================================
  Files           4        4              
  Lines         410      450      +40     
==========================================
+ Hits          399      437      +38     
- Misses         11       13       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show method

1 participant