-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support observable list for expect
#374
Comments
Why should we support the observable to be the second argument? The qutip documentation seems to define it only as a first argument, which makes sense for me.
If the |
@albertomercurio I will make a PR later. Regarding the QobjEvo for |
The observable list might contain different data types of |
expect
expect
But what if we have both operator list and state list? I that case I think we return a matrix. Is that right? We can avoid type instabilities by returning a |
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
allowAbstractQuantumObject
.Is it reasonable to calculate
expect
forQobjEvo
?I thought it will always return the value of zero. Because it uses the default value of
ScalarOperator
, which is0.0 + 0.0im
.Maybe we should just support
Qobj
forexpect
Proposed Solution
Just add more methods.
Alternate Solutions
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: