XanaduAI / QHack2021

Official repo for QHack—the quantum machine learning hackathon
https://qhack.ai
122 stars 94 forks source link

Facing problem of reading value of Quantum_gradient_100_template 1.in file #4

Closed ashishpatel26 closed 3 years ago

ashishpatel26 commented 3 years ago

1,0.5,-0.765S0.1,0,-0.654

This value is unable to read by sys.stdin.read() it's return blank. Any help.

josh146 commented 3 years ago

Hi @ashishpatel26, what command are you using to read in this value? Are you using the command provided in the how-to guide?

huckiyang commented 3 years ago

@ashishpatel26 Did you feed the 1.in together?

You can test by

python quantum_gradients_100_template.py < 1.in

and check the grounded answer by

cat 1.ans