On 2019-02-14, spartan.the <
spart...@gmail.com> wrote:
> But digging into it more I found that CLC-INTERCAL was designed for quantum computing very early, since version 0.04. I think it must be much more mature today in QC, compared to what IBM, Microsoft or Google have to offer.
Not absolutely sure the word is "designed". I think alcohol might have
been involved that evening. All I know is that before the next morning
somebody (and I'm not admitting it could have been me) had added some
code to my compiler and it somehow supported quantum computers (but of
course could not be tested for some excuse due to the unavailablility of
hardware).
> My question is very simple: what are best practices to write a program in CLC-INTERCAL that reads out HELLO WORLD! with probability greater or equal to 98%?
That's a very good question, quantum bits are expected to be all states
at once, but the normal probability to find one with value "0" is 50%.
So a "READ OUT WHILE NOT READING OUT" would not do.
Creating a number of quantum bits and asking they are found to be in a
particular set of states when observed seems to be the way, but I can't
say I have any ready code for that. Will need to think about it.
> (Of course, using QC. Because everyone knows how to write it without QC with almost 100% chances it will read out it. But these techniques are considered old today.)
Of course. With any form of INTERCAL the task is simplicity itself as
long as you don't want to make sure you are using QC functionality.
> /s
CLC