Aim: To build a compiler for my quantum language. In fact it is just a simple randomized stack based language that uses bra-ket notation.
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
Dirac (1).pdfAtualizado em 24/09/22Adobe Portable Document Format - 64.88 kB - 09/24/2022 at 10:36 |
|
|
I decided to be very rigorous about syntax.
I know it is quite boring and counter-
productive to program in such conditions
However, I intend to be more precise,
even including irrational numbers. How?
You'll see! The fact is that mathematicians
do not care about production, but aim
always for clarity of thought.
I see many languages that are quite easy
to type, but in the end they are ambiguous
when we have many ways of doing something
instead of one.
The code goes like this:
program, teste.
variable, a is bra.
variable, x is matrix.
transpose(a).
c := mult(a,x).
print(c).
end, program.
Well, I have many notes about the Dirac language, and I have to study a bit more. But, for the following month I expect to present a compiler's prototype. Something very humble to start. In pseudo language I'd like to do this
1. Define a program
2. Define the variables bra-ket
3. At least one operator
!This is a comment program teste ket a,b,c number x,y c := ax+by print c end program
Create an account to leave a comment. Already have an account? Log In.
Become a member to follow this project and never miss any updates
By using our website and services, you expressly agree to the placement of our performance, functionality, and advertising cookies. Learn More