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

🐛 Fix stripping of idle qubits #763

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

burgholzer
Copy link
Member

Description

Fixes #729

This PR fixes the stripping of idle qubits from quanutm computations.
It changes the way registers are handled in circuits from splitting registers upon removal of a qubit to reducing the size of the register and shifting all other registers.
The removal of a qubit will now also alter the qubits that operations are applied to and the I/O permutations, which previously remained unchanged.

Right now, the corresponding functionality is still to be implemented.

Checklist:

  • The pull request only contains commits that are related to it.
  • I have added appropriate tests and documentation.
  • I have made sure that all CI jobs on GitHub pass.
  • The pull request introduces no new warnings and follows the project's style guidelines.

@burgholzer burgholzer self-assigned this Nov 27, 2024
@burgholzer burgholzer added refactor Anything related to code refactoring fix Fix for something that isn't working Core Anything related to the Core library and IR c++ Anything related to C++ code labels Nov 27, 2024
@burgholzer burgholzer force-pushed the fix-idle-qubit-stripping branch from 9b64a26 to f506140 Compare November 28, 2024 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Anything related to C++ code Core Anything related to the Core library and IR fix Fix for something that isn't working refactor Anything related to code refactoring
Projects
Status: In Progress
Status: In Progress
Development

Successfully merging this pull request may close these issues.

🐛 Circuits with discontiguous qubit registers are not properly exported since v2.7.0
1 participant