QNET produces unexpected result

15 views
Skip to first unread message

Thien Nguyen

unread,
Aug 26, 2014, 8:33:47 AM8/26/14
to qnet...@googlegroups.com
Hi Nikolas,

I am writing a simple QNET circuit model for an optical cavity. When calling the "SLH" function, the TeX output had an extra creation operator in the Hamiltonian (the notebook attached)

Could you please advise me on this issue?

Thanks!
Thien Nguyen

Cavity_Test.html

Nikolas Tezak

unread,
Aug 26, 2014, 9:52:47 AM8/26/14
to qnet...@googlegroups.com
Hi Thien, this was a bug in how the operator expressions are printed.
The underlying data structure is actually correct, as you could verify by running
print C.toSLH().H.operands

This has been fixed in the newest QNET release. Please upgrade by running:

pip install —upgrade qnet

in a system shell.
Best,

Nik
> --
> You received this message because you are subscribed to the Google Groups "QNET-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to qnet-user+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> <Cavity_Test.html>

Nikolas Tezak

unread,
Aug 26, 2014, 4:52:27 PM8/26/14
to qnet...@googlegroups.com
Actually, run
pip install --upgrade --no-deps QNET

to avoid pip wanting to re-install the dependencies.
Nik

On Aug 26, 2014, at 6:52 AM, Nikolas Tezak <Nikola...@gmx.de> wrote:

> Hi Thien, this was a bug in how the operator expressions are printed.
> The underlying data structure is actually correct, as you could verify by running
> print C.toSLH().H.operands
>
> This has been fixed in the newest QNET release. Please upgrade by running:
>
> pip install --upgrade qnet
Reply all
Reply to author
Forward
0 new messages