Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Predefined Fock types do not need a basis field #115

Description

@apkille

For instance, DisplaceOp is defined as follows:

@withmetadata struct DestroyOp <: AbstractSingleBosonOp
    basis::FockBasis
end
DestroyOp() = DestroyOp(inf_fock_basis)

which doesn't make sense for a symbolic bosonic operator, as it should always have a Fock space basis of infinite dimension. In the documentation, for Fock objects we always use the default inf_fock_basis, but under the hood we should remove this field. This would be a breaking change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions