Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
mpharrigan committed Sep 10, 2024
1 parent 3a4cc97 commit 2909689
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion dev_tools/costing-report-card.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,22 @@
"outputs": [],
"source": [
"from qualtran.drawing import show_call_graph\n",
"be = get_bloq_example('hubbard_time_evolution_by_gqsp')\n",
"be = get_bloq_example('modexp_small')\n",
"bloq = be.make()\n",
"show_call_graph(bloq, max_depth=1)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8b27557c-4806-4041-b9ae-7eb28b908bce",
"metadata": {},
"outputs": [],
"source": [
"import logging\n",
"logging.basicConfig(level=logging.INFO)"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
2 changes: 1 addition & 1 deletion qualtran/bloqs/factoring/mod_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _generalize_k(b: Bloq) -> Optional[Bloq]:

@bloq_example(generalizer=(ignore_split_join, _generalize_k))
def _modexp_small() -> ModExp:
modexp_small = ModExp(base=3, mod=15, exp_bitsize=3, x_bitsize=2048)
modexp_small = ModExp(base=4, mod=15, exp_bitsize=3, x_bitsize=2048)
return modexp_small


Expand Down

0 comments on commit 2909689

Please sign in to comment.