Skip to content

Conversation

@a-eghrari
Copy link

@a-eghrari a-eghrari commented Jun 12, 2024

This commit addresses the issue where the embed function fails when it receives a single basis instead of a composite basis as input. This issue has been discussed in QuantumOpticsBase.jl's issues #159.

This commit addresses the issue where the `embed` function fails when it receives a single basis instead of a composite basis as input.
@a-eghrari a-eghrari force-pushed the embed-overloading branch from 7675121 to ad5fd2e Compare June 12, 2024 15:30
@a-eghrari
Copy link
Author

This seems to create an ambiguity when we call, for example

embed(FockBasis(2) ⊕ FockBasis(2), 1, create(FockBasis(2)))

One way is to add type assserstion to the ops argument of the definition of embed(b::SumBasis, indices, ops) in file bases.jl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants