Skip to content

Commit bcfdf93

Browse files
Merge branch 'main' into vlasov
2 parents f2f518f + c0e1ca2 commit bcfdf93

File tree

11 files changed

+174
-229
lines changed

11 files changed

+174
-229
lines changed

dev_tools/qualtran_dev_tools/all_call_graph.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
"""Generate the library-wide call graph from all bloq examples."""
16+
import logging
1617
import warnings
1718
from typing import Iterable
1819

@@ -31,6 +32,8 @@
3132
ignore_split_join,
3233
)
3334

35+
logger = logging.getLogger(__name__)
36+
3437

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

7275
for be in bes:
76+
logger.info("Building call graph for: %s", be.name)
7377
bloq = be.make()
7478
_build_call_graph(
7579
bloq=bloq, generalizer=generalize, ssa=ssa, keep=keep, max_depth=None, g=g, depth=0

qualtran/bloqs/basic_gates/on_each.py

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class OnEach(Bloq):
4343
Args:
4444
n: the number of qubits to add the bloq to.
4545
gate: A single qubit gate. The single qubit register must be named q.
46+
target_dtype: optional dtype of the register. If not provided, default to QAny.
4647
4748
Registers:
4849
- q: an n-qubit register.

qualtran/bloqs/block_encoding/lcu_block_encoding.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def system_bitsize(self) -> int:
115115

116116
@cached_property
117117
def selection_registers(self) -> Tuple[Register, ...]:
118-
return self.prepare.selection_registers
118+
return self.select.selection_registers
119119

120120
@cached_property
121121
def junk_registers(self) -> Tuple[Register, ...]:

0 commit comments

Comments
 (0)