Skip to content

Clean up pragmas and dead code in bksf.py#1240

Open
mhucka wants to merge 2 commits intoquantumlib:mainfrom
mhucka:fix-bksf-code-health-3650992452040884433
Open

Clean up pragmas and dead code in bksf.py#1240
mhucka wants to merge 2 commits intoquantumlib:mainfrom
mhucka:fix-bksf-code-health-3650992452040884433

Conversation

@mhucka
Copy link
Contributor

@mhucka mhucka commented Mar 27, 2026

  • Remove reachable # coverage: ignore and # pragma: no cover directives.
  • Remove associated TODO comments.
  • Remove unreachable dead code blocks to improve maintainability.

mhucka and others added 2 commits March 27, 2026 04:55
- Remove reachable # coverage: ignore and # pragma: no cover directives.
- Remove associated TODO comments.
- Remove unreachable dead code blocks to improve maintainability.
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request cleans up the bksf.py file by removing coverage pragmas and redundant logic blocks in the bravyi_kitaev_fast_interaction_op and bravyi_kitaev_fast_edge_matrix functions. Specifically, it removes unnecessary coverage-related comments and unreachable conditional branches used when processing interaction operators. I have no feedback to provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant