Beispiel #1
0
    def sample_bqm(self, bqm, **params):
        from dwave.cloud.utils import bqm_to_dqm

        # to sample BQM problems, we need to convert them to DQM
        dqm = bqm_to_dqm(bqm)

        return self.sample_dqm(dqm, **params)
Beispiel #2
0
    def sample_bqm(self, bqm, label=None, **params):
        from dwave.cloud.utils import bqm_to_dqm

        # to sample BQM problems, we need to convert them to DQM
        dqm = bqm_to_dqm(bqm)

        # TODO: convert sampleset back
        return self.sample_dqm(dqm, label=label, **params)