This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Description
Currently, this function from qiskit_dynamics.backend.backend_string_parser is defined as this signature:
def parse_backend_hamiltonian_dict(
hamiltonian_dict: dict, subsystem_list: Optional[List[int]] = None
) -> Tuple[np.ndarray, np.ndarray, List[str], dict]:
However, according to the documentation and its code:
return (
static_hamiltonian,
list(hamiltonian_operators),
list(reduced_channels),
subsystem_dims_dict,
)
The second returned variable should be List[np.ndarray]. Please fix this type hint as it is very annoying when using static type check tools.