I apologize if this appears somewhere more than once.
I could swear I posted this answer somewhere already. I hope it wasn't my bank account, because they are already confused enough.
Dear Steve,
Now that it is clearly stated that self-referential statements remain undecided, there are no further issues.
It might be that I misunderstood a commenter's intended meaning, and perhaps there wasn't anything to clear up at all.
Referring to your "After all, the physical phenomena indeed requires a second pulse to take the qubit out of superposition. It would be a more subtly engineered piece of code requiring quantum computing systems (i.e. ones that allow superposed states, qubits) on which to run, and I'd be interested in how you might approach it."
Firstly, I will qualify the following by saying that I am not a computer programmer, and I know even less about QC. But the logical principle would have to work the way I will describe.
The "general" part of the program will have to only deal with the output coming from that part of the program (however many lines it may be) that causes the whole thing to be self-referential. The self-referential part will have to do its processing in "isolation", and whatever it comes up with will be represented in a statement about it, and that statement will be what can be processed by the "general" part of the program. I will give you an example from MS Excel, since that is what I am familiar with. If you wish, you could type the following into MS Excel, and look at the underlying VBA code (which can be viewed within Excel) to see how the actual programming handles this, but I am not sure about the applicability of that to QC.
Say you have a column (list) of numbers, and a sum of the numbers in that column is at the bottom of the column. But one member of the list has to be calculated on the total of that list (say, as a percentage of 5% the total of the list), including itself. For this example, assume that the list of numbers being added occupies the range from A1.A10, and the sum of the "above" is located in cell A11 (and let's say the member of the list that is causing "self-referential trouble" is in cell A6). What you would do is the following. Within cell A6, you would type a summation formula: =(SUM(A1:A5)+SUM(A7:A10))*0.05+(SUM(A1:A5)+SUM(A7:A10))*0.05*0.05+(SUM(A1:A5)+SUM(A7:A10))*0.05*0.05*0.05+(SUM(A1:A5)+SUM(A7:A10))*0.05*0.05*0.05*0.05
At this point its precision is only 4 decimal points, but you could extend it to any length to obtain any amount of precision (beyond what we can practically handle). You might call it "iterations," or, expansions. I have to disagree with you (or at least alter the language), that you are "processing" the self-referential statement twice (or more). You are processing the statement about the self-referential statement several times, each based on the preceding statement.
Don't bother defending yourself. Nobody cares if what you said is perfect. Your idea is right.
However, the "trick" will be in how to apply this to the "mechanical" example you describe in your essay. That will take a gifted programmer, and a gifted experimenter. I am neither one of those.
En