Skip to content

Add apply_layout to PauliList #12302

@chriseclectic

Description

@chriseclectic

What should we add?

An apply_layout method was recently added to the Pauli operator, but not to a PauliList. PauliList is a convenient input for EstimatorV2 to represent a 1D list of Pauli's to measure, so should also have an apply_layout method.

Eg to measure Z operators on each single qubit in a list of N-qubits mapped to a bigger device one should be able to do:

obs = PauliList.from_symplectic(np.eye(N), np.zeroes((N, N))).apply_layout(isa_circuit.layout)

Metadata

Metadata

Assignees

No one assigned

    Labels

    mod: quantum infoRelated to the Quantum Info module (States & Operators)type: feature requestNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions