Skip to content

Commit

Permalink
Make CSwap a leaf bloq (#1393)
Browse files Browse the repository at this point in the history
* Make CSwap a leaf bloq

* Document swaps

* fixes

* actually commit the notebook
  • Loading branch information
mpharrigan authored Sep 9, 2024
1 parent 8a28307 commit 83b7a82
Show file tree
Hide file tree
Showing 9 changed files with 603 additions and 198 deletions.
13 changes: 11 additions & 2 deletions dev_tools/autogenerate-bloqs-notebooks-v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,19 @@
],
),
NotebookSpecV2(
title='Swap Network',
module=qualtran.bloqs.swap_network,
title='Basic Swaps',
module=qualtran.bloqs.basic_gates.swap,
bloq_specs=[
qualtran.bloqs.basic_gates.swap._TWO_BIT_SWAP_DOC,
qualtran.bloqs.basic_gates.swap._TWO_BIT_CSWAP_DOC,
qualtran.bloqs.basic_gates.swap._SWAP_DOC,
qualtran.bloqs.basic_gates.swap._CSWAP_DOC,
],
),
NotebookSpecV2(
title='Swap Networks',
module=qualtran.bloqs.swap_network,
bloq_specs=[
qualtran.bloqs.swap_network.cswap_approx._APPROX_CSWAP_DOC,
qualtran.bloqs.swap_network.swap_with_zero._SWZ_DOC,
qualtran.bloqs.swap_network.multiplexed_cswap._MULTIPLEXED_CSWAP_DOC,
Expand Down
1 change: 1 addition & 0 deletions docs/bloqs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Bloqs Library
basic_gates/y_gate.ipynb
mcmt/and_bloq.ipynb
basic_gates/states_and_effects.ipynb
basic_gates/swap.ipynb
swap_network/swap_network.ipynb
basic_gates/global_phase.ipynb
basic_gates/identity.ipynb
Expand Down
Loading

0 comments on commit 83b7a82

Please sign in to comment.