Skip to content

Conversation

weinbe58
Copy link
Member

@weinbe58 weinbe58 commented Oct 7, 2025

This PR implement a more restrictive move set for the Gemini stdlib. It consists of vertical and horizontal moves along with a move that swaps between the sides of the gate pairs. Only parallel moves within the left or right static traps are possible.

@Copilot Copilot AI review requested due to automatic review settings October 7, 2025 15:52
Copy link
Contributor

github-actions bot commented Oct 7, 2025

PR Preview Action v1.6.2

🚀 View preview at
https://QuEraComputing.github.io/bloqade-shuttle/pr-preview/pr-85/

Built to branch gh-pages at 2025-10-10 17:26 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Copy link

codecov bot commented Oct 7, 2025

Codecov Report

❌ Patch coverage is 21.42857% with 77 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...c/bloqade/shuttle/stdlib/layouts/gemini/logical.py 21.42% 77 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the logical moves in the Gemini stdlib by implementing a more restrictive move set. The changes replace the previous atomic operation manipulation (AOM) move functionality with three distinct movement types: vertical moves, horizontal moves, and block swapping moves that allow atoms to move between gate pair sides.

Key changes include:

  • Replaced AOM-based movement with three specialized movement functions (swap_block_impl, vertical_move_impl, horizontal_move_impl)
  • Updated the entangle function to use the new movement primitives
  • Added comprehensive test coverage for all three movement types

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/bloqade/shuttle/stdlib/layouts/gemini/logical.py Implements new movement functions and refactors entangle logic to use restrictive move set
test/stdlib/gemini/test_logical.py Adds comprehensive test cases for the three new movement types and removes old AOM tests

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

github-actions bot commented Oct 7, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1864 1546 83% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/bloqade/shuttle/stdlib/layouts/gemini/logical.py 46% 🟢
TOTAL 46% 🟢

updated for commit: 5bcdc83 by action🐍

@weinbe58 weinbe58 marked this pull request as draft October 8, 2025 18:00
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