Skip to content

Convert Sparse matrix to a pauli sum #8529

@ruvdrsti

Description

@ruvdrsti

Feature details

I want to convert a scipy sparse matrix into a sum of Pauli strings directly using qml.pauli_decompose without converting to a numpy array first, since for larger arrays (e.g. 16 qubits) the np version becomes too large>

see https://discuss.pennylane.ai/t/how-to-pauli-decompose-a-sparse-matrix/8436/8?u=ruvdrsti for code example.

Implementation

No response

How important would you say this feature is?

2: Somewhat important. Needed this quarter.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions