Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
- Removing version number from M files
- Bugfix in MaximumOutputFidelity
  • Loading branch information
nathanieljohnston committed Nov 28, 2014
1 parent 11c69e0 commit 970a24c
Show file tree
Hide file tree
Showing 93 changed files with 21 additions and 111 deletions.
1 change: 0 additions & 1 deletion AbsPPTConstraints.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
% requires: IsPSD.m, opt_args.m, perm_inv.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.60
% last updated: November 14, 2014

function L = AbsPPTConstraints(lam,dim,varargin)
Expand Down
1 change: 0 additions & 1 deletion AntisymmetricProjection.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
% PermuteSystems.m, sporth.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: November 26, 2012

function PA = AntisymmetricProjection(dim,varargin)
Expand Down
1 change: 0 additions & 1 deletion ApplyMap.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
% requires: opt_args.m, PermuteSystems.m, Swap.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: November 12, 2014

function PhiX = ApplyMap(X,Phi)
Expand Down
1 change: 0 additions & 1 deletion Bell.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
% requires: iden.m, opt_args.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: September 23, 2014

function phi = Bell(varargin)
Expand Down
1 change: 0 additions & 1 deletion BrauerStates.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
%
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.51
% last updated: November 12, 2014

function B = BrauerStates(d,p)
Expand Down
1 change: 0 additions & 1 deletion CBNorm.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
% author: Nathaniel Johnston ([email protected]), based on an
% algorithm by John Watrous
% package: QETLAB
% version: 0.60
% last updated: November 21, 2014

function cb = CBNorm(Phi,varargin)
Expand Down
16 changes: 4 additions & 12 deletions ChannelDistinguishability.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,15 @@
%
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: October 10, 2014
% last updated: November 27, 2014

function dist = ChannelDistinguishability(Phi,Psi,varargin)

% guess the input and output dimensions, in case they aren't provided
if(iscell(Phi))
dim = [size(Phi{1,1},2), size(Phi{1,1},1)];
elseif(iscell(Psi))
dim = [size(Psi{1,1},2), size(Psi{1,1},1)];
else
dim = round(sqrt(length(Phi)));
dim = [dim,dim];
end
% Get the input and output dimensions of PHI and PSI.
[da,db] = superoperator_dims(Psi,0,varargin{2:end});

% set optional argument defaults: p = [1/2,1/2], dim guessed based on input
[p,dim] = opt_args({ [1,1]/2, dim },varargin{:});
[p,dim] = opt_args({ [1,1]/2, [da,db] },varargin{:});

% We convert to a Choi matrix to make things easier -- we end up converting
% back to Kraus operators in the DiamondNorm function, but the performance
Expand Down
1 change: 0 additions & 1 deletion ChessboardState.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
%
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: March 13, 2013

function rho = ChessboardState(a,b,c,d,m,n,varargin)
Expand Down
1 change: 0 additions & 1 deletion ChoiMap.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
% requires: iden.m, MaxEntangled.m, opt_args.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: August 5, 2013

function C = ChoiMap(varargin)
Expand Down
1 change: 0 additions & 1 deletion ChoiMatrix.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
%
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.60
% last updated: November 24, 2014

function C = ChoiMatrix(Phi,varargin)
Expand Down
1 change: 0 additions & 1 deletion Commutant.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
%
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: November 12, 2014

function C = Commutant(A)
Expand Down
1 change: 0 additions & 1 deletion ComplementaryMap.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
%
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.60
% last updated: November 24, 2014

function PhiC = ComplementaryMap(Phi,varargin)
Expand Down
1 change: 0 additions & 1 deletion DepolarizingChannel.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

% requires: iden.m, MaxEntangled.m, opt_args.m
% author: Nathaniel Johnston ([email protected])
% version: 1.00
% last updated: March 4, 2014

function delta = DepolarizingChannel(dim,varargin)
Expand Down
1 change: 0 additions & 1 deletion DiamondNorm.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
% author: Nathaniel Johnston ([email protected]), based on an
% algorithm by John Watrous
% package: QETLAB
% version: 0.60
% last updated: November 21, 2014

function dn = DiamondNorm(Phi,varargin)
Expand Down
1 change: 0 additions & 1 deletion Distinguishability.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
%
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: October 6, 2014

function [dist,meas] = Distinguishability(X,varargin)
Expand Down
1 change: 0 additions & 1 deletion DualMap.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
%
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.60
% last updated: November 24, 2014

function PhiD = DualMap(Phi,varargin)
Expand Down
14 changes: 8 additions & 6 deletions Entropy.m
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
%% ENTROPY Computes the von Neumann entropy of a density matrix
%% ENTROPY Computes the von Neumann or Renyi entropy of a density matrix
% This function has one required argument:
% RHO: a density matrix
%
% ENT = Entropy(RHO) is the (base 2) von Neumann entropy of RHO.
%
% This function has one optional input argument:
% This function has two optional input arguments:
% BASE (default 2)
% ALPHA (default 1)
%
% ENT = Entropy(RHO,BASE) is the von Neumann entropy of RHO, computed
% with logarithms in the base specified by BASE.
% ENT = Entropy(RHO,BASE,ALPHA) is the entropy of RHO, computed with
% logarithms in the base specified by BASE. If ALPHA = 1 then this is the
% von Neumann entropy. If ALPHA <> 1 then this is the Renyi-ALPHA
% entropy.
%
% URL: http://www.qetlab.com/Entropy

% requires: nothing
% author: Nathaniel Johnston ([email protected])
% version: 0.60
% last updated: November 25, 2014
% last updated: November 27, 2014

function ent = Entropy(rho,varargin)

Expand Down
1 change: 0 additions & 1 deletion Fidelity.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
% authors: Vincent Russo ([email protected])
% Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.60
% last updated: November 21, 2014

function fid = Fidelity(rho,sigma)
Expand Down
1 change: 0 additions & 1 deletion FilterNormalForm.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
%
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: October 3, 2014

function [xi,GA,GB,FA,FB] = FilterNormalForm(rho,varargin)
Expand Down
1 change: 0 additions & 1 deletion FourierMatrix.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
% requires: nothing
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: November 30, 2012

function F = FourierMatrix(dim)
Expand Down
1 change: 0 additions & 1 deletion GellMann.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
% requires: opt_args.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: December 18, 2013

function g = GellMann(ind,varargin)
Expand Down
1 change: 0 additions & 1 deletion GenGellMann.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
% requires: opt_args.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: December 18, 2013

function g = GenGellMann(ind1,ind2,dim,varargin)
Expand Down
1 change: 0 additions & 1 deletion GenPauli.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
% requires: opt_args.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: December 18, 2013

function p = GenPauli(ind1,ind2,dim,varargin)
Expand Down
1 change: 0 additions & 1 deletion InSeparableBall.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
% requires: nothing
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.60
% last updated: November 14, 2014

function isb = InSeparableBall(X)
Expand Down
2 changes: 1 addition & 1 deletion IsAbsPPT.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

% requires: AbsPPTConstraints.m, InSeparableBall.m, IsPSD.m, opt_args.m,
% perm_inv.m
%
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.60
% last updated: November 14, 2014

function iappt = IsAbsPPT(rho,varargin)
Expand Down
1 change: 0 additions & 1 deletion IsBlockPositive.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
%
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: September 23, 2014

function [ibp,wit] = IsBlockPositive(X,varargin)
Expand Down
2 changes: 1 addition & 1 deletion IsCP.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
% requires: ApplyMap.m, ChoiMatrix.m, iden.m, IsHermPreserving.m,
% IsPSD.m, MaxEntangled.m, opt_args.m, PermuteSystems.m,
% sporth.m, superoperator_dims.m
%
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: January 4, 2013

function cp = IsCP(Phi,varargin)
Expand Down
2 changes: 1 addition & 1 deletion IsEntanglingGate.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

% requires: opt_args.m, IsProductOperator.m, IsProductVector.m,
% perm_inv.m, PermuteSystems.m, SchmidtDecomposition.m
%
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: November 28, 2012

function [eg,wit] = IsEntanglingGate(U,varargin)
Expand Down
1 change: 0 additions & 1 deletion IsHermPreserving.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
% PermuteSystems.m, sporth.m, superoperator_dims.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: January 4, 2013

function hp = IsHermPreserving(Phi,varargin)
Expand Down
1 change: 0 additions & 1 deletion IsPPT.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
% requires: IsPSD.m, opt_args.m, PartialTranspose.m, PermuteSystems.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: November 20, 2012

function [ppt,wit] = IsPPT(X,varargin)
Expand Down
1 change: 0 additions & 1 deletion IsPSD.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
% requires: opt_args.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: September 21, 2014

function [psd,wit] = IsPSD(X,varargin)
Expand Down
1 change: 0 additions & 1 deletion IsProductOperator.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
%
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: November 12, 2014

function [ipo,dec] = IsProductOperator(X,varargin)
Expand Down
1 change: 0 additions & 1 deletion IsProductVector.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
% requires: opt_args.m, SchmidtDecomposition.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: November 26, 2012

function [ipv,dec] = IsProductVector(vec,varargin)
Expand Down
1 change: 0 additions & 1 deletion IsSeparable.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
%
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: November 14, 2014

function sep = IsSeparable(X,varargin)
Expand Down
1 change: 0 additions & 1 deletion IsTotallyNonsingular.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
% requires: opt_args.m, sporth.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: December 13, 2012

function [itn,wit] = IsTotallyNonsingular(X,varargin)
Expand Down
1 change: 0 additions & 1 deletion IsTotallyPositive.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
% requires: opt_args.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: December 13, 2012

function [itp,wit] = IsTotallyPositive(X,varargin)
Expand Down
1 change: 0 additions & 1 deletion IsUPB.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

% requires: opt_args.m, vec_partitions.m
% author: Nathaniel Johnston ([email protected])
% version: 0.50
% last updated: October 21, 2014

function [iu,wit] = IsUPB(varargin)
Expand Down
1 change: 0 additions & 1 deletion IsotropicState.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
% requires: iden.m, MaxEntangled.m, opt_args.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: September 22, 2014

function rho = IsotropicState(dim,alpha)
Expand Down
1 change: 0 additions & 1 deletion KrausOperators.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
%
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.60
% last updated: November 24, 2014

function ko = KrausOperators(Phi,varargin)
Expand Down
1 change: 0 additions & 1 deletion KyFanNorm.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
% requires: kpNorm.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: December 1, 2012

function nrm = KyFanNorm(X,k)
Expand Down
1 change: 0 additions & 1 deletion Majorizes.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
% requires: nothing
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: March 4, 2014

function m = Majorizes(a,b)
Expand Down
1 change: 0 additions & 1 deletion MaxEntangled.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
% requires: iden.m, opt_args.m
% author: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.50
% last updated: November 28, 2012

function psi = MaxEntangled(dim,varargin)
Expand Down
1 change: 0 additions & 1 deletion MaximumOutputFidelity.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
%
% authors: Nathaniel Johnston ([email protected])
% package: QETLAB
% version: 0.60
% last updated: November 24, 2014

function mof = MaximumOutputFidelity(Phi,Psi,varargin)
Expand Down
Loading

0 comments on commit 970a24c

Please sign in to comment.