# How does this circuit work?

I saw a Computerphile video explaining how a simple circuit could store memory using some logic gates.

However, I couldn't wrap my mind around how one could find the value of q if one needs not, which in turn needs q, etc.

EDIT: q is the output of a logic gate and at the same time the input of another logic gate. not q is also an input and an output.

• Welcome to CS.SE! Please edit your question to make it self-contained. What is q? Please define your notation. Thank you! – D.W. Mar 11 at 6:02
• It's not clear what you're asking here. First you could link to the video. Second you could give an example and say what you mean by "find the value of q if one needs not, which in turn needs q, etc." – 6005 Mar 11 at 12:42
• Wait I thought I linked it? – Bored Comedy Mar 11 at 16:09
• I still don't think we have enough context. The question needs to be self-contained, so we can understand it without clicking on an external link. Without knowing what specific circuit you're thinking of, I don't think this can be answered. – D.W. Mar 11 at 16:34
• @D.W. Alright I will edit it later to be self-contained. – Bored Comedy Mar 11 at 16:39