/
concept-collection
/
numbl-open-quantum-systems
Jump to
/
Appearance
Match my system
Paper
GitHub
Slate
Midnight
Terminal
Sign in
concept-collection
/
numbl-open-quantum-systems
Code
Commits
Issues
0
Pull requests
0
Actions
Branches
1
Tags
0
Site
c33ae98
Branches
main
numbl-open-quantum-systems
/
acav.m
12 lines · 263 B
Copy
Copied
Blame
History
Raw
1
function x = acav(i,L,Nphoton,Is,Iatom)
2
a = diag(sqrt(
1
:Nphoton)
',1);
3
a = kron(Iatom,a);
4
Op_total = cell(1,L);
5
for site = 1:L
6
Op_total{site} = Is+double(eq(i,site))*(a-Is);
7
end
8
x = Op_total{1};
9
for site = 2:L
10
x = kron(x,Op_total{site});
11
end
12
end
↑
↓
move
↵
open
esc
close