Alexander Condello

Results 257 comments of Alexander Condello

I tried a few approaches, and I think ```python import warnings class MyInt(int): def __new__(cls, method): obj = super().__new__(cls, method()) obj._method = method return obj def __call__(self, *args, **kwargs): return...

Another approach, based on a suggestion by @thisac, would be something like `future.py` ```python class NewFeature: pass ``` `myclass.py` ```python import inspect from future import NewFeature class A: @property def...

CQM is handled by https://github.com/dwavesystems/dimod/pull/1296. Doing BQM would be a bit more complicated because we don't use zipfile.

Hi @JordanAWS , we deliberately do not have a direct dependency on pandas since it is a rather weighty library and we only include a few methods, like this one,...

Also add performant addition of linear and quadratic biases from arrays.

Hi @angystallone, I don't have the full context of your code, but it looks like you're trying to minimize the distance between a bqm and single number. In that case,...

Hi @angystallone , would you be able to share your code? Or, even better, a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example)?

Hi @ACE07-Sev , we do not support strict inequality. You need to use `

Unfortunately that is also not supported at the moment, though you can do `bqm0 - bqm1 >= 0`.

Agree that would be useful. In the mean time, we do support [lp files](https://docs.ocean.dwavesys.com/en/stable/docs_dimod/reference/utilities.html#module-dimod) which can serve as an intermediate representation. I believe you can create an LP file using...