function [ PhaseMatrix ] = generate_full_phase( NumQubits )
%generate_single_phase builds a single-precision matrix which flips the
%sign of the non-zero states, and leaves all-zero state alone.

PhaseMatrix=-eye(2^(NumQubits));
PhaseMatrix(1)=1;


end

