Skip to content

feat: refactored mcx in gate_application_functions - #741

Open
invariantfields wants to merge 1 commit into
eclipse-qrisp:mainfrom
invariantfields:main
Open

feat: refactored mcx in gate_application_functions#741
invariantfields wants to merge 1 commit into
eclipse-qrisp:mainfrom
invariantfields:main

Conversation

@invariantfields

Copy link
Copy Markdown

Description

Refactors mcx as suggested in #580
Uses dicts and helper functions to clean up the if else loops.

Related Issues

Closes #580.

Type of Change

  • Feature (new functionality)
  • Change Request (modification of existing functionality)
  • Bug Fix
  • Refactoring (no behavior change)
  • Performance improvement
  • Documentation
  • CI / Build

Breaking Change?

  • Yes
  • No

If yes, describe the impact and migration path:

What was changed?

  • Changes the full structure of mcx to remove the if else spaggetti.
  • Used dict of functions to clean the code
  • internal functions defined with "_" prefix to avoid possible conflicts.

How was it tested?

Tested for the specific mcx_tests

image

Checklist

  • My code follows the project's coding standards
  • I have performed a self-review
  • I have added/updated tests (referencing issue Test-IDs)
  • All tests pass locally and in CI
  • I have updated the documentation
  • I have added a changelog entry to changelog-dev.rst
  • Breaking changes are documented with migration path

Reviewer Notes

I need some suggestions to make sure this is upto the standards for the codebase and will proceed to implement the same refactors to the mcz and mcp as suggested in #580 .

@purva-thakre

Copy link
Copy Markdown
Contributor

Hi, sorry. As far as I understand, someone else is working on this issue. You should have seen their comment in the connected issue. Let's not duplicate the work.

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.

Refactor mcx gate

2 participants