Skip to content

PauliwordOp initialization error with trivial input in cleanup() #203

@HaoTy

Description

@HaoTy

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions