This program calculates the Tanimoto similarity of binary strings using OpenCL through Python and PyOpenCL. This implementation is designed to be simple and high-throughput for large inputs.
Tanimoto similarity (aka. Tanimoto distance or Tanimoto index) is a way to measure the similarity between two binary strings where a 1 indicates the presence of a characteristic and a 0 indicates its absence. It is calculated as: