Add apply_layout
to other operators
#11824
Labels
mod: primitives
Related to the Primitives module
mod: quantum info
Related to the Quantum Info module (States & Operators)
type: feature request
New feature or request
Milestone
What should we add?
apply_layout
was added to SparsePauliOp at some point, but not to other operators (eg Pauli).This method could in theory be added to
BaseOperator
to apply to any operator (caveat, it requires ScalarOp which is a subclass of BaseOperator, and you could easily blow up your computers memory if you try and apply a large qubit layout to a channel op or Operator).This function generalizes the current function to work for any n-qubit BaseOperator subclass:
The text was updated successfully, but these errors were encountered: