Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expect() implementation and addition of waveguide operators #45

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

mabuni1998
Copy link
Collaborator

@mabuni1998 mabuni1998 commented Feb 20, 2024

expect(O,rho), with O being related to a waveguideoperator, now returns a sum over all time bins.

Also added the ability to add two waveguide operators by creating a lazysum:

w = destroy(bw)
wd = create(bw)
S = w + wd

See also: #44

Taking the expectation value with any waveguide operator now returns the sum over all waveguide times. Addition between waveguide operators, also added.
Copy link

codecov bot commented Feb 20, 2024

Codecov Report

Attention: 30 lines in your changes are missing coverage. Please review.

Comparison is base (f6a0023) 58.11% compared to head (4dfc5b3) 57.27%.
Report is 5 commits behind head on main.

Files Patch % Lines
src/WaveguideInteraction.jl 0.00% 24 Missing ⚠️
src/WaveguideOperator.jl 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #45      +/-   ##
==========================================
- Coverage   58.11%   57.27%   -0.84%     
==========================================
  Files          11       11              
  Lines        1664     1690      +26     
==========================================
+ Hits          967      968       +1     
- Misses        697      722      +25     

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

@mabuni1998 mabuni1998 merged commit 0dee8d2 into main Feb 20, 2024
8 of 10 checks passed
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.

1 participant