From 2d00528304f1877e801d2e5404e8cb7b22cd61c3 Mon Sep 17 00:00:00 2001 From: "T.Aoyama" Date: Wed, 29 Nov 2023 19:51:08 +0900 Subject: [PATCH] set default of initial configuration to be zero --- src/hwave/solver/uhfk.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/hwave/solver/uhfk.py b/src/hwave/solver/uhfk.py index cc4159a..3c741c7 100644 --- a/src/hwave/solver/uhfk.py +++ b/src/hwave/solver/uhfk.py @@ -636,11 +636,12 @@ def _initial_green(self, green_info): _data = self._initial_green_random_conv() #_data = self._initial_green_random_conv_reshape() elif green_info["initial_mode"] == "random": - pass # default + logger.info("initialize green function with random numbers") + _data = self._initial_green_random_simple() - if _data is None: # default - logger.info("initialize green function with random numbers") - _data = self._initial_green_random_simple() + if _data is None: # default = zero + logger.info("initialize green function with zeros") + _data = self._initial_green_zero() return _data def _initial_green_zero(self):