convert old style array to braket

convert old style array to braket