gusucode.com > qit_matlab_0.10.0工具箱源码程序 > qit/utils/qubits.m

    function dim = qubits(n)
% QUBITS  Dimension vector for an all-qubit system.
%  dim = qubits(n)
%
%  For the extemely lazy, returns dim = 2*ones(1, n)

% Ville Bergholm 2010


dim = 2*ones(1, n);