Skip to content

Commit

Permalink
Refactor block encoding bloqs to use abstract base class. (#967)
Browse files Browse the repository at this point in the history
* Refactor block encoding bloqs to use abstract base class.

* Review response.

* Address review comments.

* Use SymbolicInt everywhere.

* WIP.

* WIP.

* Work on trotter costs.

* WIP.

* Add more examples.

* Lint.

* Fix notebook.

* Revert SymbolicInt in partition bloq.

* WIP fixing notebook.

* Update resource estimation notebook.

* Use BlackBoxX consistently.

* Fix mypy errors.

* Address review comments.
  • Loading branch information
fdmalone authored May 24, 2024
1 parent 2aa288c commit 75bbaba
Show file tree
Hide file tree
Showing 8 changed files with 934 additions and 199 deletions.
4 changes: 3 additions & 1 deletion dev_tools/autogenerate-bloqs-notebooks-v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,9 @@
title='Block Encoding',
module=qualtran.bloqs.block_encoding,
bloq_specs=[
qualtran.bloqs.block_encoding._BLACK_BOX_BLOCK_BLOQ_DOC,
qualtran.bloqs.block_encoding._BLOCK_ENCODING_DOC,
qualtran.bloqs.block_encoding._LCU_BLOCK_ENCODING_DOC,
qualtran.bloqs.block_encoding._LCU_ZERO_STATE_BLOCK_ENCODING_DOC,
qualtran.bloqs.block_encoding._CHEBYSHEV_BLOQ_DOC,
],
directory=f'{SOURCE_DIR}/bloqs/',
Expand Down
Loading

0 comments on commit 75bbaba

Please sign in to comment.