API docs for bqm.add_interaction
Under BQM methods
https://docs.dwavequantum.com/en/latest/ocean/api_ref_dimod/models.html#bqm-methods
There is docs for add_variable but there is no docs for add_interaction where can I find docs for bqm.add_interaction ?
Comments
Hi Ashwin,
add_interaction is an alias for add_quadratic, there is no documentation in the Docs, but you can find the information on our GitHub (https://github.com/dwavesystems/dimod/blob/a1e10c299118051cf8709c7387824e38fc9d24b6/dimod/binary/binary_quadratic_model.py#L882)
or access the Docstring in your terminal. Both messages read "Alias for :meth:`.add_quadratic`". The documentation for the latter is here:
https://docs.dwavequantum.com/en/latest/ocean/api_ref_dimod/generated/dimod.binary.BinaryQuadraticModel.add_quadratic.html#dimod.binary.BinaryQuadraticModel.add_quadratic
I am hoping that this is answering your question.
Is `add_interaction` meant to be phased out?
No, we are currently not planning to deprecate the add_interaction method, to avoid code-breaking changes.
Please sign in to leave a comment.