forked from nathanieljohnston/QETLAB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChoiMap.m
31 lines (27 loc) · 1.03 KB
/
ChoiMap.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
%% CHOIMAP Produces the Choi map or one of its generalizations
% This function has no required arguments.
%
% C = ChoiMap() is the Choi matrix of the Choi map, which is a positive
% map on 3-by-3 matrices that is capable of detecting some entanglement
% that the transpose map is not.
%
% This function has three optional arguments:
% A,B,C (default 1,1,0)
%
% C = ChoiMap(A,B,C) is the Choi matrix of the positive map defined in
% [1]. Many of these maps are capable of detecting PPT entanglement.
%
% URL: http://www.qetlab.com/ChoiMap
%
% References:
% [1] S. J. Cho, S.-H. Kye, and S. G. Lee, Linear Algebr. Appl. 171, 213
% (1992).
% requires: iden.m, MaxEntangled.m, opt_args.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% last updated: August 5, 2013
function C = ChoiMap(varargin)
% set optional argument defaults: a=1, b=1, c=0 (the usual Choi map)
[a,b,c] = opt_args({ 1, 1, 0 },varargin{:});
psi = MaxEntangled(3,0,0);
C = diag([a+1,c,b,b,a+1,c,c,b,a+1]) - psi*psi';