Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use rotation eps in GateCounts #1255

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix bug
anurudhp committed Aug 13, 2024
commit 96ee81005c5d9175b822dae2ef27ac25008750df
5 changes: 2 additions & 3 deletions qualtran/bloqs/chemistry/sparse/sparse_test.py
Original file line number Diff line number Diff line change
@@ -68,10 +68,9 @@ def qrom_cost(prep: PrepareSparse) -> int:


def get_toffoli_count(bloq: Bloq) -> SymbolicInt:
"""Get the toffoli count of a bloq assuming no raw Ts."""
"""Get the toffoli count of a bloq ignoring raw Ts/Rotations."""
counts = get_cost_value(bloq, QECGatesCost(), generalizer=generalize_cswap_approx)
cost_dict = counts.total_t_and_ccz_count(ts_per_rotation=0)
assert cost_dict['n_t'] == 0
cost_dict = counts.total_t_and_ccz_count()
return cost_dict['n_ccz']