-
Notifications
You must be signed in to change notification settings - Fork 4
/
skyscraper_plot.m
67 lines (48 loc) · 1.28 KB
/
skyscraper_plot.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
d = 4;
% choi_ground = randomCPTP_quasi_pure(d,0.9);
choi_ground = randomCPTP(d,d*d);
choi_ground_vec = reshape(choi_ground,[],1);
A = PM_minimal(d);
p = real(A*choi_ground_vec);
n = p; % noiseless scenario
[choi_ml_vec, solution, costs] = gdapB(A,n);
choi_ml = reshape(choi_ml_vec,[],d*d);
trace_dist(choi_ground/trace(choi_ground),choi_ml/trace(choi_ml))
figure('Position',[1 0 300 300]);
% subplot(2,1,1)
b1 = bar3(real(choi_ml));
for k = 1:length(b1)
zdata = b1(k).ZData;
b1(k).CData = zdata;
b1(k).FaceColor = 'interp';
end
xticks([1,d*d/2,d*d])
yticks([1,d*d/2,d*d])
xticklabels([])
yticklabels([])
ylim([0,d*d+0.5])
xlim([0,d*d+0.5])
zlim([-1,1])
zlabel('Re$C_{\mathcal{E}}$','Interpreter','latex')
set(gca,'fontsize',18)
saveas(gcf,'./plots/FULLRANKssREAL.png')
figure('Position',[1 0 300 300]);
b2 = bar3(imag(choi_ml))
for k = 1:length(b2)
zdata = b2(k).ZData;
b2(k).CData = zdata;
b2(k).FaceColor = 'interp';
end
% xlabel('i')
% ylabel('j')
xticks([1,d*d/2,d*d])
yticks([1,d*d/2,d*d])
xticklabels([])
yticklabels([])
ylim([0,d*d+0.5])
xlim([0,d*d+0.5])
zlim([-1,1])
zlabel('Im$C_{\mathcal{E}}$','Interpreter','latex')
set(gca,'fontsize',18)
saveas(gcf,'./plots/FULLRANKssIMAG.png')
% saveas(gcf,'./plots/ss.eps','epsc')