Open kevinsung opened 4 years ago
At Cirq sync we decided to first add a matrix and/or sparse_matrix method to PauliSum, and only consider making these protocols if there are more use cases. The methods added to PauliSum should take qubit_order as argument.
There doesn't seem to be an easy way to get the matrix of a PauliSum. It has no
matrix
method, nor do we have amatrix
protocol. Typically one actually wants the matrix as a Scipy sparse matrix rather than a Numpy array. We should make this easy. Should it be a method or a protocol?