/
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
/
getSci.m
11 lines · 243 B
Copy
Copied
Blame
History
Raw
1
function Sci = getSci(sc,i,Nspins)
2
Is = eye(
2
);
3
Op_total = cell(
1
,Nspins);
4
for
site =
1
:Nspins
5
Op_total{site} = Is+
double
(eq(i,site))*(sc-Is);
6
end
7
Sci = Op_total{
1
};
8
for
site =
2
:Nspins
9
Sci = kron(Sci,Op_total{site});
10
end
11
end
↑
↓
move
↵
open
esc
close