-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Passive compiler, finishing up (#602)
* new passive circuit compiler * add PassiveChannel as valid gate for passive compiler * generalise channel merging to multimode channels (ie PassiveChannel) * PassiveChannel tests * tests for passive compiler * tests for passive compiler auxillary functions * code factor stuff * flip the conj in the apply_u method * now featuring relevant docstrings * dev version of thewalrus * run black * remove dependency on dev version of thewalrus * fix docstring * remove expand_passive from backend * trailing whitespace * remove numba * remove numba imports * minor comments * minor comments * minor comments * black * black * declare hbar * more functional gate application * hbar in test args * local tests are more happy * run black * better test coverage * run black * implement some josh comments * passive backend tidying * add to __all__ * update changelog * allow for float args to PassiveChannel * update docs * first attempt at adding decomposition of passive channel * handle parameter properly * revert changes, maybe save those for a new PR * black * Update .github/CHANGELOG.md Co-authored-by: Josh Izaac <josh146@gmail.com> * Update .github/CHANGELOG.md Co-authored-by: Josh Izaac <josh146@gmail.com> Co-authored-by: Nicolas Quesada <zeitus@gmail.com> Co-authored-by: Josh Izaac <josh146@gmail.com>
- Loading branch information
1 parent
b4d9153
commit 9f6debb
Showing
7 changed files
with
84 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,6 +113,7 @@ Channels | |
LossChannel | ||
ThermalLossChannel | ||
MSgate | ||
PassiveChannel | ||
|
||
:html:`</div>` | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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