A computer system comprising one or more processors, one or more computer-readable memories, and one or more computer-readable storage devices, and program instructions stored on at least one of the one or more storage devices for execution by at least one of the one or more processors via at least one of the one or more memories, the stored program instructions comprising:
- program instructions to receive a training data set;
- program instructions to select, by a first processor, a sampling of objects from the training set, each object represented by at least one vector;
- program instructions to apply, by a quantum processor, a quantum feature map to the selected objects to produce one or more output vectors;
- program instructions to determine, by the first processor, one or more distance measures between pairs of the output vectors;
- program instructions to determine, by the first processor, at least one portion of the quantum feature map to modify the classical feature map;
- and
- program instructions to add, by the first processor, an implementation of the at least one portion of the quantum feature map to the classical feature map to generate an updated classical feature map.