-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add Qobj
and tensor
#14
Comments
Thank you for submitting this issue. The proposed changes are reasonable. We can even try to change all QuantumObjects to Qobj, which could be implemented using a simple ctrl+f and then substituting. In this way, we will never deal with QuantumObject anymore. |
I have made a PR as shown above. For the substitution of Qobj(A; kwargs...) = QuantumObject(A; kwargs...) That means it is just passing all the args to For me, I think defining |
I agree with you. Let's merge it with with both of them. |
To make the syntax more similar to
QuTiP
, I suggest to add the following function support:Qobj(A; kwargs...) = QuantumObject(A; kwargs...)
: This is just for us to createQuantumObject
in a lazy way (and more similar toQuTiP
). (f3c95b5)tensor(A...) = kron(A...)
: does the same thing askron
(9949e38)⊗(A, B) = kron(A, B)
: take advantage ofQuantumOptics
(9949e38)The last support allows us to express
tensor(A, B, C)
asA ⊗ B ⊗ C
.If @albertomercurio agrees with this, I can make a PR for this issue.
The text was updated successfully, but these errors were encountered: