Skip to content

No module named lava.lib.optimization.solvers.qubo #312

@jairedc

Description

@jairedc

Bug
Missing qubo solver.

To reproduce
When running tutorial_QUBO_solver.ipynb, I get a module not found error on the first block with imports:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], [line 12](vscode-notebook-cell:?execution_count=1&line=12)
      [9](vscode-notebook-cell:?execution_count=1&line=9) from lava.magma.compiler.subcompilers.nc.ncproc_compiler import CompilerOptions
     [10](vscode-notebook-cell:?execution_count=1&line=10) from lava.magma.compiler.subcompilers.nc import partitionable
---> [12](vscode-notebook-cell:?execution_count=1&line=12) from lava.lib.optimization.solvers.qubo.process import QUBOSolverProcess
     [13](vscode-notebook-cell:?execution_count=1&line=13) from lava.lib.optimization.solvers.qubo.utils.hyperparameters import QUBOHyperparameters
     [14](vscode-notebook-cell:?execution_count=1&line=14) from lava.lib.optimization.solvers.qubo.utils.solver_config import SolverConfig

ModuleNotFoundError: No module named 'lava.lib.optimization.solvers.qubo'

It looks as if qubo should appear under src/lava/lib/optimization/solvers/, but I only see bayesian, generic, and lca. Was something missing in the commit that introduced this Jupyter notebook?

This is off a fresh install of lava and lava-optimization. The tutorial_04_lca.ipynb notebook runs without issue for me, so I believe my environment was created correctly.

Expected behavior
All code blocks in tutorial_QUBO_solver.ipynb should run without issue, and the QUBO solver should be available under src/lava/lib/optimization/solvers/.

Environment:

  • Device: Server, Kapoho Point
  • OS: Ubuntu 20.04
  • Lava versions:
lava                      0.9.0              pyhd8ed1ab_0    conda-forge
lava-dl                   0.5.0              pyhd8ed1ab_0    conda-forge
lava-loihi                0.6.0                    pypi_0    pypi
lava-optimization         0.5.0              pyhd8ed1ab_0    conda-forge

Metadata

Metadata

Assignees

No one assigned

    Labels

    0-needs-reviewHas to be reviewed.1-bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions