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)
What should we add?
An
apply_layoutmethod was recently added to thePaulioperator, but not to aPauliList. PauliList is a convenient input for EstimatorV2 to represent a 1D list of Pauli's to measure, so should also have anapply_layoutmethod.Eg to measure
Zoperators on each single qubit in a list of N-qubits mapped to a bigger device one should be able to do: