|
return PauliwordOp([], [np.sum(self.coeff_vec)]) |
This PauliwordOp instantiation triggers the following assertion in the constructor, which I think is an unintended behavior. My guess is that the intended implementation is to use PauliwordOp.from_list() but was lost due to a previous refactor of the constructor.
|
assert(symp_matrix.dtype == bool), 'Symplectic matrix must be defined over bools' |