function [ OracleMatrix ] = generate_single_oracle( NumQubits, Answer )
%generate_single_oracle
%   Answer is the vector containing all the values for which the search 
%   criterion is true.
%   This implementation makes OracleMatrix a single-precision
%   matrix that can handle the case of multiple solutions.

OracleMatrix=single(eye(2^NumQubits));
for i=1:size(Answer,2);
    OracleMatrix(Answer(i)+1,Answer(i)+1)=-1;
end

end

