Hi tesfaye mamuye,

at the moment we have no move implemented that shifts segment end points. You can implement one along the lines of the moves that are already there (see hybupdates.cpp line 41 and later), but my gut feeling is that moving segment end points will not enhance your sampling efficiency by much.

The update that shifts segments (in the code as shift_segment_update) is currently commented out, I have to look into that.

In principle shifting a segment is equivalent to removing a segment and then adding it somewhere again, so you don’t need those moves. Why do you think that they are necessary?

The spinflilp update is documented on line 513:
Idea: take remove_segment_update and insert_segment_update and combine them so one segment is removed from on orbital (spin up or down) and inserted on the corresponding other_orbital (spin down or up), if the other_orbital is not filled.

Is that what you need?

Best wishes,
Emanuel

On Sep 10, 2014, at 6:01 AM, tesfaye mamuye <tesfa2127@yahoo.com> wrote:

Dear ALPS Developers/users
I am using alps CT-QMC(Hybridization expansion) as impurity solver. But the total acceptance rate is getting low and low, and I'm wondering if it may affect the final result. In order to overcome this, I'm thinking to use additional update: 'shift of the segment end point' which is used to enhance the sampling efficiency (to increase the acceptance ratio and reduce auto-correlation times) which do not change the expansion order.

However, I didn't get in the documentation on how to implement this additional update as control parameter 'SPINFLIP'={0.1} : specify to whether to perform spin flip update. Is it possible to use for shift of the segment end point update 'N_SHIFT'=1 ? I need help on how to implement this additional update.

here is the sample 

|------ Simulation details (master only) after 2665880 sweeps ------|
  Total acceptance rate = 22.92%
  Individual acceptance rate for update 
     change zero state    = 0.00% (proposal rate = 10.00%)
     insert segment       = 6.37% (proposal rate = 25.00%)
     remove segment       = 6.37% (proposal rate = 25.00%)
     insert anti-segment  = 5.09% (proposal rate = 20.00%)
     remove anti-segment  = 5.09% (proposal rate = 20.00%)
     swap segment         = 0.00% (proposal rate = 0.00%)
|-----------------------------------------------------------------|

Thank you for your time