Difference between revisions of "Quantum Computations Online"
From Qugate
Line 1: | Line 1: | ||
<qu qubits="8" size="50" cols="12" init="0" bits="[0,1,2]" prog="yes"> | <qu qubits="8" size="50" cols="12" init="0" bits="[0,1,2]" prog="yes"> | ||
[ H(0), H(1), H(2), U([0,1,2],[3,4,5], | [ H(0), H(1), H(2), U([0,1,2],[3,4,5], | ||
+ | |||
function(x) { return Math.pow(7,x)%8; }, 'f'), H(2), C(1,R(1,2)), C(0, R(2,2)), H(1), C(0, R(1,1)), H(0) ] | function(x) { return Math.pow(7,x)%8; }, 'f'), H(2), C(1,R(1,2)), C(0, R(2,2)), H(1), C(0, R(1,1)), H(0) ] | ||
</qu> | </qu> | ||
* [[JQ_Manual|jQ Manual]] | * [[JQ_Manual|jQ Manual]] |