r/itsaunixsystem • u/xxLusseyArmetxX • Mar 15 '20
[Devs] - Quantum Computing - Is this a known programming language or is it made up ? Spoiler
1.0k
Upvotes
r/itsaunixsystem • u/xxLusseyArmetxX • Mar 15 '20
214
u/xxLusseyArmetxX Mar 15 '20
So it's like a weird version of python with bits of "nonsense", cool. I only know a tiny bit of Python so wouldn't have recognized it like that. Thanks!
512
u/[deleted] Mar 15 '20
Looks like Python.
110
u/antonivs Mar 15 '20
The code looks like it's using a version of Qiskit, a quantum computing framework for Python.
There are several matching features, including the classes
QuantumRegisterandQuantumCircuit, theexecutefunction which returns a job object, the waybackendsis used.However, the specifics are all wrong in various ways, much like the syntax of the code itself, suggesting that this may have been taken from a real program and munged to fit the screen and look more exciting - e.g. there's clearly been an attempt to fill up horizontal space that you wouldn't have seen in the original program.
50
u/kronicmage Mar 15 '20
This is some really high effort fake code
59
u/Khazrodan Mar 15 '20
Top right looks like brainfuck 😂🤣 https://en.m.wikipedia.org/wiki/Brainfuck
8
u/trizzle21 Mar 15 '20
I would suppose if they went to the extreme of putting an engineeing team into some trillion dollar box, they'd have enough money to write their own language and compiler optimized for whatever they're doing
7
u/[deleted] Mar 15 '20
looks like a weird mashup of python
6
u/[deleted] Mar 15 '20
python but weird indentation
4
u/[deleted] Mar 15 '20
Looks like python
4
u/hackel Mar 15 '20
I'm definitely interested in this new programming language based entirely on HTML comments!
4
u/[deleted] Mar 15 '20
Top right code block looks a lot like the brainfuck language
6
u/Eiim Mar 15 '20
Can't make out much, but I definitely see some defs in there, so maybe Python?
Edit: indentation's weird, so probably not actually.
7
u/Walkbyfaith123 Mar 15 '20
Those for loops tho
2
u/plasmasprings Mar 15 '20
I really like the inline comment in
else: # run failed, try again return FALSEjust kind of ending on its ownAnyway, a lot of it is python. The bottom part starting with
Reallooks like C/C++ with pascal-cased types for some reason (might be some strange library)The
do case:andhypo in 0 to 3:parts have me mystified, I don't recognize what PL they look like.The top-right looks like pretty looking garbage. It does look a bit like brainf*ck, but bf does not use the pipe symbol
Nice screen, and whoever made it clearly had some fun with it
2
u/nevatalysa Mar 15 '20
Looks like a mix of Python and maybe Elixir?
2
u/J0LlymAnGinA Mar 15 '20
Semi made up. Kinda python-esque, but like, slightly incorrect.
4
u/Khazrodan Mar 15 '20
It’s trying to be python 🤣🤣
2
u/Maximus-53 Mar 15 '20
It's kinda like someone took a semester of python in high school, and was asked to write random stuff they vaguely remember. It looks like python and is structured kinda like python but it's still gibberish.
1
u/Rbelugaking Mar 15 '20
I’ve went down the rabbit hole of quantum computing, I’ve never done it I’ve just watched videos about it. Basically it uses quantum physics to do calculations, let’s just say it’s a mindfuck to understand...
1
u/heliophobicdude Mar 15 '20
What do y’all think of the show?
1
u/stfcfanhazz Mar 15 '20
Pythony but with indentation/spacing that looks like it's under the effects of an ancient curse
1
u/Matir Mar 15 '20
It looks like python using the Cirq library, but with other random stuff thrown in there. Definitely non-sensical AFAICT.
1
u/pr0ximity Mar 16 '20
Some syntax errors on line XX and X0.
1
u/Ixpqd Apr 28 '20
Seems like some kind of malformed Python...
1
u/-SoItGoes Mar 15 '20 edited Mar 15 '20
My vote would be on real - I’ve just completed a project involving simulating quantum circuits and that looks very close to my experience. As in a person would have to have significant experience in programming and quantum computing to make something that realistic. If this was a show they definitely took code from somewhere real. It’s not Mr. robot level of accuracy but it’s still very close.
1
u/[deleted] Mar 15 '20
so has this subreddit gone from making fun of obviously bad code to looking specifically for issues?