Page 1 of 1

Initializing RenyiDisentangler

Posted: 21 May 2020, 15:13
by gunheepark0229
Hi!
I was trying to use RenyiDisentangler class.
The parameter on the initialization is the 'parent', which is the tebd.Engine.
However, in my case, I did now want to run the tebd algorithm, but only wanted to get the disentangler in the end.
I think I do not need tebd for the disentangler, as I read through Hauschild2018 https://arxiv.org/abs/1711.01288

Initializing tebd requires the arguments as psi, model, and options, but the only argument I want to put is options.
What would be the clever way to init RenyiDisentangler?

Thanks in advance.

Re: Initializing RenyiDisentangler

Posted: 22 May 2020, 12:47
by gunheepark0229
Maybe I can copy and paste the source code to define my own function that can be used without tebd class :)

Re: Initializing RenyiDisentangler

Posted: 26 May 2020, 03:43
by Johannes
Wow, someone interested in the methods of that paper :)

Sorry for the bad programming style making it hard to use it without TEBD :?
The BackwardsDisentangler needed full access to TEBD, and I wanted to have a uniform interface for the different disentangler classes.

Copy/paste works, of course. Alternatively, you can just define a dummy class which you can use instead:

Code: Select all

class DummyParent:
    def __init__(self, options):
        self.options = options
        self._update_index = (None, 0)
        self._disent_iterations = [0]
        self.verbose = 0
I think that should make the Reny-Disentangler work...