Skip to content

Conversation

@david-pl
Copy link
Collaborator

@david-pl david-pl commented Dec 5, 2025

Previously, we'd only allow any single non-Clifford gate to be applied to a set of qubits. That means, you couldn't e.g. apply an Rx to the first and an Ry to the second qubit, since the latter would have already counted as the second gate and it's non-Clifford.

This fixes this by actually checking the first gates per qubit address.

@david-pl david-pl requested a review from weinbe58 December 5, 2025 15:27
@codecov
Copy link

codecov bot commented Dec 5, 2025

Codecov Report

❌ Patch coverage is 97.22222% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ade/gemini/analysis/logical_validation/analysis.py 94.44% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
10556 9294 88% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/bloqade/gemini/analysis/logical_validation/analysis.py 97% 🟢
src/bloqade/gemini/analysis/logical_validation/impls.py 100% 🟢
TOTAL 99% 🟢

updated for commit: 2ff90a4 by action🐍

Copy link
Member

@weinbe58 weinbe58 left a comment

Choose a reason for hiding this comment

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

LGTM, I just think we probably won't need to have a check for QubitAddress.

@david-pl david-pl merged commit 6e6f823 into main Dec 9, 2025
11 of 12 checks passed
@david-pl david-pl deleted the david/fix-logical-validation-state-prep branch December 9, 2025 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants