Skip to content

Commit

Permalink
Use QROAMClean in Chemistry Sparse Prepare bloq (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdmalone authored Aug 26, 2024
1 parent 4e18633 commit 6e603a3
Show file tree
Hide file tree
Showing 10 changed files with 173 additions and 229 deletions.
4 changes: 4 additions & 0 deletions dev_tools/qualtran_dev_tools/all_call_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

"""Generate the library-wide call graph from all bloq examples."""
import logging
import warnings
from typing import Iterable

Expand All @@ -31,6 +32,8 @@
ignore_split_join,
)

logger = logging.getLogger(__name__)


def get_all_call_graph(bes: Iterable[BloqExample]):
"""Create a call graph that is the union of all of the bloqs in the list of bloq examples.
Expand Down Expand Up @@ -70,6 +73,7 @@ def keep(b: Bloq) -> bool:
ssa = SympySymbolAllocator()

for be in bes:
logger.info("Building call graph for: %s", be.name)
bloq = be.make()
_build_call_graph(
bloq=bloq, generalizer=generalize, ssa=ssa, keep=keep, max_depth=None, g=g, depth=0
Expand Down
2 changes: 1 addition & 1 deletion qualtran/bloqs/block_encoding/lcu_block_encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def system_bitsize(self) -> int:

@cached_property
def selection_registers(self) -> Tuple[Register, ...]:
return self.prepare.selection_registers
return self.select.selection_registers

@cached_property
def junk_registers(self) -> Tuple[Register, ...]:
Expand Down
Loading

0 comments on commit 6e603a3

Please sign in to comment.