KwiatLab / Quantum-Tomography

A python library to help perform tomography on a quantum state
http://tomography.web.engr.illinois.edu/TomographyDemo.php
MIT License
29 stars 9 forks source link

It can't be compile with a pythoneval.txt . #1

Closed boonthum082 closed 3 years ago

boonthum082 commented 4 years ago

invalid syntax (pythoneval.txt, line 1)
Traceback (most recent call last):
  File 'RunScript.py', line 6, in 
    exec(open('State_Tomography_WebsiteLib.py').read())
  File '', line 32, in 
  File 'Quantum-Tomography_Git/QuantumTomography/TomoClass.py', line 144, in importEval
    exec(compile(open(evaltxt, 'rb').read(), evaltxt, 'exec'))
  File 'pythoneval.txt', line 1
    tomo_input = np.array([[1,0,,1,0],[1,0,,0,1],[1,0,,0.7071,0.7071],[1,0,,0.7071,-0.7071],[1,0,,0.7071,0.7071j],[1,0,,0.7071,-0.7071j]])

smturro2 commented 4 years ago

Hey thanks for reporting the issue. It looks like there was a problem with getting the input for the coincidences. Can you confirm that you inputted values into the coincidences column before clicking run?

smturro2 commented 3 years ago

We've added a new feature that handles invalid inputs in our website. This should cover errors of this type.