3 ms·
Did you read the readme? look it directly says Quantum Features Quantum C is the world's second quantum programming language (at least, that more than like 2 pe
by YougOtricked 9mo ago
Did you read the readme? look it directly says Quantum Features
Quantum C is the world's second quantum programming language (at least, that more than like 2 people would ever say the name of(now that statement is true)), but the first that doesn't require a $10M quantum computer!
Quantum Booleans
qbool qb = both; // Superposition! Both true AND false!
qif (qb) {
println("True path"); // Executes!
} qelse {
println("False path"); // ALSO executes!
}
Quantum Logic Operators
// Note these are not for normal booleans
&&& - Quantum AND
||| - Quantum OR
!! - Quantum NOT
^^ - Quantum XOR
=== - Quantum EQUAL
!== - Quantum NOT EQUAL
|&| - Collapse OR (convert to bool)
&|& - Collapse AND (convert to bool)