Variational consistent histories as a hybrid algorithm for quantum foundations | Synapse