Skip to content

blueqat 0.6.0 - 2022-04-18

Compare
Choose a tag to compare
@minatoyuichiro minatoyuichiro released this 18 Apr 01:58
· 54 commits to master since this release
f0e5c81

Photonics Continuous Variable Programming Integrated

from blueqat import photonqat as pq
import numpy as np
import matplotlib.pyplot as plt

# mode number = 2, cutoff dimension = 15
F = pq.Fock(2, cutoff = 15)

alpha = (1 + 1j)
r = -0.5

F.D(0, alpha) # Displacement to mode 0
F.S(1, r) # Squeezeng to mode 1

F.run()

# Plot Wigner fucntion for mode 0 using matplotlib
(x, p, W) = F.Wigner(0, plot = 'y', xrange = 5.0, prange = 5.0)