Skip to content

Support observable list for expect #374

@ytdHuang

Description

@ytdHuang

Problem Description

For the current implementation of expect, it only allows a single observable (Operator).
We should also support it to be the a list of observables.

Furthermore, I saw some methods of expect allow AbstractQuantumObject.
Is it reasonable to calculate expect for QobjEvo ?
I thought it will always return the value of zero. Because it uses the default value of ScalarOperator, which is 0.0 + 0.0im.

Maybe we should just support Qobj for expect

Proposed Solution

Just add more methods.

Alternate Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions