mahout icon indicating copy to clipboard operation
mahout copied to clipboard

refactor: Backend modules lack type hints affecting IDE support and type safety

Open kartikeyg0104 opened this issue 1 month ago • 1 comments

Problem

The backend modules (qiskit_backend.py, cirq_backend.py, amazon_braket_backend.py) currently lack type annotations for function parameters and return values. This affects:

  • IDE autocomplete and IntelliSense functionality
  • Static type checking capabilities (mypy, pyright, etc.)
  • Code readability and self-documentation
  • Developer experience when working with the codebase

Current State

Affected files:

  • qumat/qiskit_backend.py - 16 functions without type hints
  • qumat/cirq_backend.py - 16 functions without type hints
  • qumat/amazon_braket_backend.py - 16 functions without type hints

Example of current code:

def apply_hadamard_gate(circuit, qubit_index):
    circuit.h(qubit_index)

kartikeyg0104 avatar Nov 25 '25 07:11 kartikeyg0104