Skip to content

Large switch statements in Gate/Gates_block need to use OOP, utils.py needs to refactor out common funcs #254

@GregoryMorse

Description

@GregoryMorse

Currently every switch statement in Gate/Gates_block is a code smell where OOP could put such functionality on base classes properly and any vital differences in class themselves. This is an important refactoring to reduce lines of code, complexity and maintenance pressure.

Also the minimum number of CNOTs to represent each gate, and things like the qiskit compatible gates, and all gates offered, etc all belong in utils.py and should be reused, rather than scattered throughout the code. Leads to easier to read, simpler, more maintainable code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions