convert old style array to new style ([])
Merge pull request #2128 from zoghal/3-patch-2

convert old style array to braket