-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different Fockbasis implementation #384
Comments
QuantumOptics.jl implements a matrix representation of a given Fock basis, creation and annihilation operator. You will get the same matrix if you provide the Something like this would work fine:
If you want to keep
About an example of a 50:50 beam splitter and the Hong-Ou-Mandel effect, I refer you to |
Thanks for the answer, Ali! @amol2891 , I will close this issue as it seems it was answered, but please do not hesitate to reopen it. |
I was trying to model the 50:50 beam splitter with input state |1,1,0,0> as the one, one photon at the input port and the 0,0 at the output port. For that I tried to create 4 different FockBasis for respective ports. But apparently even the creation and destruction operators of other FockBasis is giving non-zero results upon acted on other fockstates of different basis.
In the code attached even if a1d * i3, raises the photon number of i3 which is fockstate of fb3.
It would be really nice if someone please give an example of 50:50 beam splitter and the Hong-Ou-Mandel effect.
`#!/usr/bin/julia
using LinearAlgebra,QuantumOptics,Gnuplot
N = 2;
fb1 = FockBasis(N);
fb2 = FockBasis(N);
fb3 = FockBasis(N);
fb4 = FockBasis(N);
a1 = destroy(fb1);
a2 = destroy(fb2);
a3 = destroy(fb3);
a4 = destroy(fb4);
a1d = create(fb1);
a2d = create(fb2);
a3d = create(fb3);
a4d = create(fb4);
n1 = number(fb1);
n2 = number(fb2);
n3 = number(fb3);
n4 = number(fb4);
i1 = fockstate(fb1,1);
i2 = fockstate(fb2,1);
i3 = fockstate(fb3,0);
i4 = fockstate(fb4,0);
input = tensor(i1,i2,i3,i4);`
The text was updated successfully, but these errors were encountered: