The theory of quantum discrimination has received considerable attention in the field of quantum cryptography, with many approaches having being developed such as minimum-error discrimination (ME) [1]}, [2]}, [3]}, [4]}, [5]}, [6]}, unambiguous discrimination (UD) [7]}, [8]}, [9]}, [10]}, maximal confidence (MC) [11]}, error margin (EM) methods [12]}, [13]}, [14]}, and fixed rate of inconclusive results (FRIR) methods [15]}, [16]}, [17]}, [18]}. Here our objective is to use quantum discrimination to distinguish between two states in order to infer the presence of a magnetic field. Our proposed scheme aims to maximize the confidence of our measurement by optimizing the time our NV centers are allowed to interact with the magnetic field. This formalism is applied both constant and fluctuating magnetic field profiles. We then extend our treatment to consider ensembles of NV centers. Finally we take a look at how such generalized measurements can actually be implemented.
