Boson

Bosonic quantum operators.

class sympy.physics.quantum.boson.BosonCoherentBra(alpha)[source]

Coherent state bra for a bosonic mode.

Parameters:

alpha : Number, Symbol

The complex amplitude of the coherent state.

class sympy.physics.quantum.boson.BosonCoherentKet(alpha)[source]

Coherent state ket for a bosonic mode.

Parameters:

alpha : Number, Symbol

The complex amplitude of the coherent state.

class sympy.physics.quantum.boson.BosonFockBra(n)[source]

Fock state bra for a bosonic mode.

Parameters:

n : Number

The Fock state number.

class sympy.physics.quantum.boson.BosonFockKet(n)[source]

Fock state ket for a bosonic mode.

Parameters:

n : Number

The Fock state number.

class sympy.physics.quantum.boson.BosonOp(*args, **hints)[source]

A bosonic operator that satisfies [a, Dagger(a)] == 1.

Parameters:

name : str

A string that labels the bosonic mode.

annihilation : bool

A bool that indicates if the bosonic operator is an annihilation (True, default value) or creation operator (False)

Examples

>>> from sympy.physics.quantum import Dagger, Commutator
>>> from sympy.physics.quantum.boson import BosonOp
>>> a = BosonOp("a")
>>> Commutator(a, Dagger(a)).doit()
1