Initializing RenyiDisentangler

How do I use this algorithm? What does that parameter do?
Post Reply
gunheepark0229
Posts: 9
Joined: 15 May 2020, 10:52

Initializing RenyiDisentangler

Post 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.
gunheepark0229
Posts: 9
Joined: 15 May 2020, 10:52

Re: Initializing RenyiDisentangler

Post by gunheepark0229 »

Maybe I can copy and paste the source code to define my own function that can be used without tebd class :)
User avatar
Johannes
Site Admin
Posts: 413
Joined: 21 Jul 2018, 12:52
Location: TU Munich

Re: Initializing RenyiDisentangler

Post 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...
Post Reply