Qulacs-Osaka / scikit-qulacs

scikit-qulacs is a library for quantum neural network. This library is based on qulacs and named after scikit-learn.
https://qulacs-osaka.github.io/scikit-qulacs/index.html
MIT License
21 stars 6 forks source link

Use numpy's ndarray instead of `List` for type hints #179

Closed ikanago closed 2 years ago

ikanago commented 2 years ago

現在 x: List[List[float]]y: List[int] のような型ヒントを書いていますが、numpy.typing.NDArray あるいは numpy.ndarray に置き換えようと思います. List と書いているのに実際には numpy の ndarray が入っていることが多く,型ヒントの意味が薄くなっているためです.

WATLE commented 2 years ago

ほんとだ

WATLE commented 2 years ago

ありがとう