Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

question about 'flipflop_remap' #118

Open
Flower9618 opened this issue Oct 18, 2021 · 2 comments
Open

question about 'flipflop_remap' #118

Flower9618 opened this issue Oct 18, 2021 · 2 comments

Comments

@Flower9618
Copy link

Flower9618 commented Oct 18, 2021

Hello, thank you very much for providing this useful tool. I just have a question when I read the code in

(T, K) where K = 2 * nbase * (nbase + 1)

Why K=2nbase(nbase+1)? and waht does T mean?

@tmassingham-ont
Copy link
Contributor

Hello. We only store the nonzero entries for the full (nbase + nbase)^2 transition matrix.
Every base has a "flip" and a "flop" state, so (nbase + nbase) states in all, but transitions to a flop state can only come from a same base (either flip or flop) so part of the full transition matrix is extremely sparse.

Full transition matrix, where F is the set of "flip" bases, f is the set of "flop" bases, A & B are full rank matrices, and D & E are diagonal matrices.

  | F f 
--+-----
F | A B
f | D E

As stored in Taiyaki, where '-' represents transition to the appropriate "flop" base, and d & e are the diagonal elements of the matrices D & E above.

  | F f 
--+-----
F | A B    nbase x (nbase + nbase) elements
- | d e    (nbase + nbase) elements

@Flower9618
Copy link
Author

Flower9618 commented Oct 18, 2021

Hello. We only store the nonzero entries for the full (nbase + nbase)^2 transition matrix. Every base has a "flip" and a "flop" state, so (nbase + nbase) states in all, but transitions to a flop state can only come from a same base (either flip or flop) so part of the full transition matrix is extremely sparse.

Full transition matrix, where F is the set of "flip" bases, f is the set of "flop" bases, A & B are full rank matrices, and D & E are diagonal matrices.

  | F f 
--+-----
F | A B
f | D E

As stored in Taiyaki, where '-' represents transition to the appropriate "flop" base, and d & e are the diagonal elements of the matrices D & E above.

  | F f 
--+-----
F | A B    nbase x (nbase + nbase) elements
- | d e    (nbase + nbase) elements

It is very helpful to me. Thank you very much for your prompt reply.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants