myQLM / myqlm-issues

4 stars 1 forks source link

Errors when attempting to display the circuit #13

Closed ninaoneill closed 3 years ago

ninaoneill commented 3 years ago

Describe the bug Errors when attempting to display the circuit

To Reproduce When running the epr_pair tutorial, I tried to print the circuit using %qatdisplay and obtained a Permission Error. An image file of the circuit was created but it had 0 bytes. I also tried to print the circuit using %jsqatdisplay and obtained a Javascript error. Again, an image file of the circuit was created but it had 0 bytes.

Expected behavior I expected the circuit to be printed, as is shown in the tutorial.

Screenshots Added below

Desktop (please complete the following information): Windows 10, Firefox 91.0.2 (64 bit)

Capture1 Capture2

amitsaha2806 commented 3 years ago

Hello @ninaoneill,

Have you installed myQLM magics to display quantum circuits inside Jupyter notebooks?

Please let me know.

ninaoneill commented 3 years ago

Hello,

Yes, I have installed myQLM magic. It said the installation was successful.

On Tue, Aug 31, 2021 at 2:54 AM amitsaha2806 @.***> wrote:

Hello @ninaoneill https://github.com/ninaoneill,

Have you installed myQLM magics to display quantum circuits inside Jupyter notebooks?

Please let me know.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/myQLM/myqlm-issues/issues/13#issuecomment-908921969, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOYVG3VAGPVMHR7AQT7K55TT7RVB3ANCNFSM5C6MM3PQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

amitsaha2806 commented 3 years ago

Hello @ninaoneill,

Could you please post your complete program?

ninaoneill commented 3 years ago

Hello, I was attempting to run the epr_pair program available in the tutorial notebooks. I sent it as an attachment in this e-mail.

Em ter, 31 de ago de 2021 06:07, amitsaha2806 @.***> escreveu:

Hello @ninaoneill https://github.com/ninaoneill,

Could you please post your complete program?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/myQLM/myqlm-issues/issues/13#issuecomment-909047197, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOYVG3U6KQWAXAPVFMYHE7LT7SLUDANCNFSM5C6MM3PQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

amitsaha2806 commented 3 years ago

Hello,

I have tried to run EPR_pair on Windows 10, Firefox 91.0.2 (64 bit). But, in my case, it has successfully printed the desired circuit.

image

Before running your program again, please make sure you have installed every prerequisite properly. Please let me know if everything is properly installed at your end and still you are not getting the circuit output.

ninaoneill commented 3 years ago

I've successfully installed myqlm, Imagemagick and myqlm magics, but I still have the same error. Is there anything else that must be installed?

On Wed, Sep 1, 2021 at 2:01 AM amitsaha2806 @.***> wrote:

Hello,

I have tried to run EPR_pair on Windows 10, Firefox 91.0.2 (64 bit). But, in my case, it has successfully printed the desired circuit.

[image: image] https://user-images.githubusercontent.com/58389485/131613224-e0d1647a-ef31-43ba-9453-51ebd77052f6.png

Before running your program again, please make sure you have installed every prerequisite properly. Please let me know if everything is properly installed at your end and still you are not getting the circuit output.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/myQLM/myqlm-issues/issues/13#issuecomment-909887532, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOYVG3SMAKLP4UK2XSQDFQTT7WXSJANCNFSM5C6MM3PQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

jcjaskula commented 3 years ago

Hi @ninaoneill,

I believe %qatdisplay --svg circuit would work. It will display your circuit using other libraries (no installation required).

ninaoneill commented 3 years ago

Hello,

It worked. Thank you very much :)

On Thu, Sep 2, 2021 at 10:43 AM Jean-Christophe Jaskula < @.***> wrote:

Hi @ninaoneill https://github.com/ninaoneill,

I believe %qatdisplay --svg circuit would work. It will display your circuit using other libraries (no installation required).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/myQLM/myqlm-issues/issues/13#issuecomment-911698782, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOYVG3UJHRLVURJ5KCNCF5DT755PFANCNFSM5C6MM3PQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.