-
Couldn't load subscription status.
- Fork 58
Description
Meta-comment
It turns out that doing this automatically isn't practical. We need to do the replacements manually. I think the best way to handle this is to keep the title as a moving target. Right now there between 1100 and 1200 calls to np.dot, and we can say we've made material progress if we can get that down to 1000 calls.
Original comment
Numpy's dot function executes matrix-matrix multiplication. There are many places where we use this function in pyGSTi. Python 3.5 introduced the @ operator for matrix multiplication. Since then the preferred way to express C = np.dot(A, B) is C = A @ B. Using @ has a big advantage of working with matrix/array datatypes from libraries other than numpy (like PyTorch Tensors or Dask Arrays). In view of this, I suggest we replace calls to np.dot with an appropriate use of @.
How do @sandialabs/pygsti-maintainers feel about this?