You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

9 lines
128 B

INITIALIZE R2 2 0
U TENSOR HAD ID
APPLY U R
SELECT S1 R 0 1
MEASURE S1 RES
APPLY CNOT R
MEASURE R RES
ADD 3 2 R2
MEASURE R2 RES