qit.ho¶
Harmonic oscillators¶
This module simulates harmonic oscillators by truncating the state space dimension to a finite value. Higher truncation limits give more accurate results. All the functions in this module operate in the truncated number basis \(\{\ket{0}, \ket{1}, ..., \ket{n-1}\}\) of the harmonic oscillator, where n is the truncation dimension.
The corresponding truncated annihilation operator can be obtained with qit.utils.boson_ladder
.
Contents¶
|
Coherent states of a harmonic oscillator. |
|
Position eigenstates of a harmonic oscillator. |
|
Momentum eigenstates of a harmonic oscillator. |
|
Position operator. |
|
Momentum operator. |
|
Bosonic displacement operator. |
|
Bosonic squeezing operator. |
|
Bosonic rotation operator. |
|
Bosonic beamsplitter operator. |
|
Bosonic controlled addition operator. |
|
Husimi probability distribution. |
|
Wigner quasi-probability distribution. |
Functions
|
Bosonic beamsplitter operator. |
|
Coherent states of a harmonic oscillator. |
|
Bosonic controlled addition operator. |
|
Bosonic displacement operator. |
|
Husimi probability distribution. |
|
Momentum operator. |
|
Momentum eigenstates of a harmonic oscillator. |
|
Position operator. |
|
Position eigenstates of a harmonic oscillator. |
|
Bosonic rotation operator. |
|
Bosonic squeezing operator. |
|
Wigner quasi-probability distribution. |