matrixToHTML

matrixToHTML(M)

Creates an HTML table based on the given matrix.

Parameters:
  • M : 2d numpy array with shape = (2^numQubits, 2^numQubits)

    Matrix you would like to display on your html page.

  • printEigenVals : boolean

    Specify if you want eigen values to be calculated and displayed at the bottom of the table.

Returns:
  • res : string

    HTML code of the created table. See Also ------ propertiesToHTML

See Also:


Contact

In case you have any further questions about the Python code, you should direct them to Scott Turro or Joey Shallat.