Sign in
concept-collection
/
numbl-open-quantum-systems
Code
Commits
Issues
0
Pull requests
0
Actions
Branches
1
Tags
0
Site
main
Branches
main
numbl-open-quantum-systems
/
sigmap.m
14 lines · 293 B
Copy
Copied
Blame
History
Raw
1
function x = sigmap(i,L,Is,Icav)
2
up = [
1
0
]
';
3
down = [0 1]'
;
4
sigma_p = up*down
';
5
sigma_p = kron(sigma_p,Icav);
6
Op_total = cell(1,L);
7
for site = 1:L
8
Op_total{site} = Is+double(eq(i,site))*(sigma_p-Is);
9
end
10
x = Op_total{1};
11
for site = 2:L
12
x = kron(x,Op_total{site});
13
end
14
end