Allow constructing a SparsePauliOp
from a SparseObservable
#13500
Labels
mod: quantum info
Related to the Quantum Info module (States & Operators)
type: feature request
New feature or request
What should we add?
quantum_info
objects can typically be constructed from one another, e.g. we can doSparseObservable(sparse_pauli_op_type)
,Operator(sparse_pauli_op_type)
orSparsePauliOp.from_operator(operator_type)
. It would be nice to extend these operations forSparseObservable
. In particular constructing aSparsePauliOp
from aSparseObservable
would ease the transition to this new type -- doing the construction for anOperator
is more of an optional convenience (albeit possibly leading users onto inefficient paths).The text was updated successfully, but these errors were encountered: