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

♻️ Refactor NonUnitaryOperation class to simplify target handling #399

Merged
merged 1 commit into from
Aug 16, 2023

Commits on Aug 16, 2023

  1. ♻️ Refactor NonUnitaryOperation class to simplify target handling

    In the NonUnitaryOperation class, the previous implementation used two different vectors to manage the targets for Measure and other operations, which lead to redundancy in the code. This update unifies the handling of targets by using only one vector (named targets) for all operations. This simplification enhances the code readability and maintainability. It also removes the need of several functions like getTargets() and getUsedQubits().
    Several function argument lists have also been refactored for cleaner and more consistent usage. Further, the print() function was restructured for better clarity. Overall, these changes will be beneficial for future development work.
    
    Signed-off-by: burgholzer <[email protected]>
    burgholzer committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    7fdc0a6 View commit details
    Browse the repository at this point in the history