-
Notifications
You must be signed in to change notification settings - Fork 26
/
IsotropicState.m
23 lines (20 loc) · 916 Bytes
/
IsotropicState.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
%% ISOTROPICSTATE Produces an isotropic state
% This function has two required arguments:
% DIM: the local dimension
% ALPHA: the parameter of the isotropic state
%
% RHO = IsotropicState(DIM,ALPHA) is the isotropic state with parameter
% ALPHA acting on (DIM*DIM)-dimensional space. More specifically, RHO is
% the density operator defined by (1-ALPHA)*I/DIM^2 + ALPHA*E, where I is
% the identity operator and E is the projection onto the standard
% maximally-entangled pure state on two copies of DIM-dimensional space.
%
% URL: http://www.qetlab.com/IsotropicState
% requires: iden.m, MaxEntangled.m, opt_args.m
% author: Nathaniel Johnston (nathaniel@njohnston.ca)
% package: QETLAB
% last updated: September 22, 2014
function rho = IsotropicState(dim,alpha)
% compute the isotropic state
psi = MaxEntangled(dim,1,0);
rho = (1-alpha)*speye(dim^2)/dim^2 + alpha*psi*psi'/dim;