Skip to content

Commit

Permalink
Generalize SolutionReadout
Browse files Browse the repository at this point in the history
  • Loading branch information
phstratmann authored Feb 21, 2024
1 parent 1fcf242 commit e2bcb81
Show file tree
Hide file tree
Showing 4 changed files with 299 additions and 218 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ class CostIntegrator(AbstractProcess):
The expected number and topology of the input cost components.
target_cost: int
Target cost of the QUBO solver. Once reached, the best_cost,
best_timestep, and best_state are spiked out.
best_timestep, and best_variable_assignment are spiked out.
timeout: int
Timeout of the QUBO solver. Once reached, the best_cost,
best_timestep, and best_state are spiked out.
best_timestep, and best_variable_assignment are spiked out.
name : str, optional
Name of the Process. Default is 'Process_ID', where ID is an
integer value that is determined automatically.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(
self.control_cost_integrator = InPort(shape=shape)
self.s_sig_out = OutPort(shape=shape)
self.s_wta_out = OutPort(shape=shape)
self.best_state_out = OutPort(shape=shape)
self.best_variable_assignment_out = OutPort(shape=shape)

self.spk_hist = Var(
shape=shape, init=(np.zeros(shape=shape) + init_value).astype(int)
Expand Down
Loading

0 comments on commit e2bcb81

Please sign in to comment.