Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
:warning: dwave-neal is deprecated in favor of
dwave-samplers <https://github.com/dwavesystems/dwave-samplers>
_.
.. image:: https://img.shields.io/pypi/v/dwave-neal.svg :target: https://pypi.org/project/dwave-neal
.. image:: https://codecov.io/gh/dwavesystems/dwave-neal/branch/master/graph/badge.svg :target: https://codecov.io/gh/dwavesystems/dwave-neal
.. image:: https://readthedocs.com/projects/d-wave-systems-dwave-neal/badge/?version=latest :target: https://docs.ocean.dwavesys.com/projects/neal/en/latest/?badge=latest
.. image:: https://circleci.com/gh/dwavesystems/dwave-neal.svg?style=svg :target: https://circleci.com/gh/dwavesystems/dwave-neal
.. index-start-marker
An implementation of a simulated annealing sampler.
A simulated annealing sampler can be used for approximate Boltzmann sampling or
heuristic optimization. This implementation approaches the equilibrium
distribution by performing updates at a sequence of increasing beta values,
beta_schedule
, terminating at the target beta. Each spin is updated once
in a fixed order per point in the beta_schedule according to a Metropolis-
Hastings update. When beta is large the target distribution concentrates, at
equilibrium, over ground states of the model. Samples are guaranteed to match
the equilibrium for long 'smooth' beta schedules.
For more information, see Kirkpatrick, S.; Gelatt Jr, C. D.; Vecchi, M. P. (1983). "Optimization by Simulated Annealing". Science. 220 (4598): 671–680
.. code-block:: python
import neal
sampler = neal.SimulatedAnnealingSampler()
h = {0: -1, 1: -1}
J = {(0, 1): -1}
sampleset = sampler.sample_ising(h, J)
.. index-end-marker
.. installation-start-marker
To install:
.. code-block:: bash
pip install dwave-neal
To build from source:
.. code-block:: bash
pip install -r requirements.txt
python setup.py build_ext --inplace
python setup.py install
.. installation-end-marker
Released under the Apache License 2.0. See LICENSE file.
Ocean's contributing guide <https://docs.ocean.dwavesys.com/en/stable/contributing.html>
_
has guidelines for contributing to Ocean packages.
FAQs
General Ising graph simulated annealing solver
We found that dwave-neal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.