Alexander Condello

Results 148 issues of Alexander Condello

Right now, in order to add bias to an existing interaction, one needs to `dqm.set_linear(v, dqm.get_linear(v) + 1)` which is unwieldy. Also in the quadratic case it does two log(n)...

feature-request/enhancement

minimal failing example: ``` import dimod import numpy as np sample = [-1, 1, 1] ss_int = dimod.SampleSet.from_samples(np.asarray(sample, dtype=np.int), energy=6, vartype='SPIN') ss_float = dimod.SampleSet.from_samples(np.asarray(sample, dtype=np.float), energy=6, vartype='SPIN') dimod.sampleset.concatenate([ss_int, ss_float]) ```

bug/fix

This change was made for `DQM.to_numpy_vectors` in https://github.com/dwavesystems/dimod/pull/707

feature-request/enhancement

`BQM.change_vartype` and `SampleSet.change_vartype` either always copy or always act in place. It would be useful to be able to cast the BQM/SampleSet to an appropriate vartype, _copying only in the...

feature-request/enhancement

Building on https://github.com/dwavesystems/dimod/pull/627, it would be nice to have the ability to just get the relevant BQMs. Something like ``` for bqm in iter_test_bqm(): pass ``` in the case that...

feature-request/enhancement

**Application** Right now all the constraints are soft constraints when converted to BQMs. It would be good though to formalize that and allow users to specify the strength of their...

feature request

**Application** It would be good to also support weighted conjunctive normal form. Requires #73

feature request

**Application** Given the 'usual' ways to generate constraints, the pattern ``` csp.add_constraint(and_gate(['a', 'b', 'c'])) ``` seems more astonishing than ``` csp.add_constraint(and_gate, ['a', 'b', 'c']) ``` One anticipated problem is that...

feature request

**Application** Sometimes I want to create a constraint for which I already know the values for some of the variables. I can create the constraint and then immediately fix the...

feature request