Latex display with phases

Issue #8 resolved
Dave Clader created an issue

When displaying superpositions, imaginary phases do not get displayed accurately. For example

S | H | pyqc.Ket(0)

should display \frac{|0\rangle + i |1\rangle}{\sqrt{2}}, but instead it displays \frac{|0\rangle + |1\rangle}{\sqrt{2}}. The imaginary phase is dropped. The internal display is correct, as the qobj returned by the above expression, correctly contains the imaginary part.

Comments (1)

  1. E. Madison Bray repo owner

    Hello, I applied the patch for this sent to me by Durward McDonell many, many years ago in f489346 and agree that it fixed the issue =)

  2. Log in to comment