-
-
November 4, 2024 at 6:55 pmvenuskdSubscriberI am trying to simulate the Hong-Ou-Mandel effect, and for that, I need qINTERCONNECT. I used the following code in Python:Âimport syssys.path.append(r"C:\Program Files\Lumerical\v241\api\
python") Âimport qinterconnectfrom qinterconnect.solver import QSolverfrom matplotlib import pyplot as pltimport numpy as npÂÂBut I get this error :  ModuleNotFoundError: No module named 'qinterconnect.solver'ÂI have attached a screenshot from the Program Files Lumerical folder, which shows that it seems Python API module for qINTERCONNECT is installed. However, it does not appear to contain any solver, such as QSolver, so I am unsure if this error is related to that.
Additionally, I have attached a screenshot from the Ansys Lumerical Launcher, which shows that I have access to qINTERCONNECT. However, when I try to open this solver, I only see a command window instead of a specific interface GUI, like with the other solvers. I have attached this screenshot as well.
I would appreciate it if you could let me know how I can resolve this issue.
Â
In the meantime, I tried using INTERCONNECT to simulate the Hong-Ou-Mandel effect, but it seems unable to solve it and returns values in the classic view. Although I used an attenuator with -80 dB, I still could not observe the Hong-Ou-Mandel effect in the output.
I have attached my setup screenshot in interconnect, I used optical oscilloscopes in both outputs and also tried optical power meters in both outputs. I see the same result from both outputs and I could not observe the HOM effect. -
November 8, 2024 at 1:01 amDevAnsys Employee
Â
Â
Hello venuskd,Â
Thanks for using Ansys learning forum.Â
Can you please confim you have q-interconnect license. Its a seperate licese from interconnect. I want to make sure its not a licensing issue.Â
Looking forward for your response.Â
Best regards
Â
Â
Â
Â
-
November 9, 2024 at 10:34 pmvenuskdSubscriber
Hello Devika,
Thank you for your consideration. Would you be able to guide me on how I might verify if I have a license for this specific module?
Bests,
VenusÂ
-
November 11, 2024 at 9:42 pmvenuskdSubscriber
Hello Devika,
Â
As far as I know, we have a QINTERCONNECT license as well. However, I’m not sure what steps I should take to resolve this issue. Could you confirm if QINTERCONNECT should have an interface similar to INTERCONNECT? When I try to access QINTERCONNECT, I see the 'command prompt' window shown below:
So I am not sure, should I type anything to access this qinterconnetc interface? , and also what it should be look like?Â
I am looking forward to hearing from you.
Bests,
Venus -
November 12, 2024 at 7:44 pmLitoAnsys Employee
Hi Venus,Â
From our qINTERCONNECT User Guide – Ansys Optics (KB):
The qINTERCONNECT solver is a Python module that can be called from within the INTERCONNECT scripting environment or from Python environment
Please find the following articles in Ansys Optics KB for qINTERCONNECT.Â
-
November 14, 2024 at 10:34 pmvenuskdSubscriber
Hi Lito,
According to the "qINTERCONNECT User Guide-Ansys Optics" , it mentions that you should "verify that the version of Python being used is the packaged version." However, I’m unsure what this means in practice. I am connecting to Lumerical via the Python API using the following code:
import sys
sys.path.append("C:\\Program Files\\Lumerical\\v242\\api\\python\\")
And then I use below code :
from qinterconnect.solver import QSolver
To connect to QSolver, but I see this error below:
ModuleNotFoundError: No module named 'qinterconnect.solver'I'm unsure how to resolve this issue.
Â
I’ve already reinstalled the latest versions of Lumerical and QINTERCONNECT, but the issue persists.
Â
In the meantime, I would appreciate it if you could share any webinars or YouTube links that might help me understand the steps to run examples, such as those in this "Link."
Â
Bests,
Venus -
November 14, 2024 at 10:40 pmLitoAnsys Employee
Make sure that the Lumerical install & API path is in set in your environment.Â
<<Create or modify environment variables in Windows – Ansys Optics>>
-
November 14, 2024 at 11:14 pmvenuskdSubscriber
I have added the api/pyhton to the user variables as below:
C:\Program Files\Lumerical\v242\api\python
Â
Should I add any thing else?
Â
With this modification, still I see the same error!
Bests,
Venus -
November 14, 2024 at 11:25 pmLitoAnsys Employee
Did you download and install the qINTERCONNECT package from the Ansys Customer Portal?Â
-
November 14, 2024 at 11:29 pmvenuskdSubscriber
I did this as well: I added it to user variables,
Â
C:\Program Files\Lumerical\v242
Â
But with this belowe code :import sys
sys.path.append("C:\\Program Files\\Lumerical\\v242\\api\\python\\")Âfrom qinterconnect.solver import QSolver
Â
I again face this : Â ModuleNotFoundError: No module named 'qinterconnect.solver'
Â
Â
-
November 14, 2024 at 11:32 pmvenuskdSubscriber
Yes I have download and install the qINTERCONNECT package from the Ansys Customer Portal, and that is why I installed new version of Lumerical, previously I had v241, it was not compatible so I installed v242 to solve this problem.Â
-
November 14, 2024 at 11:34 pmLitoAnsys Employee
Did you download and install the qINTERCONNECT installer/package from the Ansys customer portal downloads page? <<qINTERCONNECT installation guide – Ansys Optics >>
The Lumerical install and API path are:Â
C:\Program Files\Lumerical\v242\bin
C:\Program Files\Lumerical\v242\api\python -
November 14, 2024 at 11:38 pmvenuskdSubscriber
Â
Â
Yes, as I mentioend I downloaded the qINTERCONNECT installer/package from the Ansys customer portal downloads page.
Â
And yes, the Lumerical and API path are, which I added them to use variables as well.Â
Â
C:\Program Files\Lumerical\v242\bin
C:\Program Files\Lumerical\v242\api\pythonÂ
I have used so far, for FDTD simulation with no issue.
Â
-
November 14, 2024 at 11:45 pmLitoAnsys Employee
Try to follow the steps in the getting started guide >Getting started with qINTERCONNECT – Ansys Optics
- Download the example from >Non-Linear Sign (NLS) Gate – Ansys Optics.Â
- Open INTERCONNECT CAD/GUI
- Open and run the script, NLS_ideal.py.Â
- Send a screenshot of the error message if any.Â
If you are running directly from a Windows command prompt/Python Editor, follow the steps here.Â
Â
Â
-
November 15, 2024 at 12:09 amvenuskdSubscriber
The first and last links do not open!
Â
I see this:
You're not authorized to access this page
- Access to this page may require support registration
- Access to this page may require a specific license (e.g. CML Compiler docs require a CML Compiler license)
Â
-
November 14, 2024 at 11:45 pmvenuskdSubscriber
If you mean :
C:\Program Files\Lumerical\v242\bin
C:\Program Files\Lumerical\v242
With bin and without bin,I tried both , the error is still there! -
November 15, 2024 at 12:43 amLitoAnsys Employee
Running qINTERCONNECT from INTERCONNECT platform
- Download NLS_ideal.py and NLS_ideal.icp from Non-Linear Sign (NLS) Gate – Ansys OpticsÂ
- Start the Optics LauncherÂ
- Click New Project from the INTERCONNECT Photonic Integrated Circuit Solver line.
- Open the Script File EditorÂ
- Click Open script then browse to NLS_ideal.py, or simply drag and drop the python file in the editor. Â
- Click Run script.
   7. A command prompt window shows the calculation of a qubit gate with probability rate of 25% using only classical gates.
-
November 15, 2024 at 12:44 am
-
November 15, 2024 at 12:59 amvenuskdSubscriber
I did all steps,
Although, I did not face python integration configuration.
Â
And this is the result:
--------------------------------------------------------------------------------------------------------------------
So it seems I have access via Interconnect, but directly from python it does not work.
I am using Spyder to run my codes, as I mentioend earlier I did FDTD simulartions via python API, and it worked with no issue! but I do not know why for qInterconnect I see this: ModuleNotFoundError: No module named 'qinterconnect.solver'
Â
Â
Â
-
November 15, 2024 at 3:48 amLitoAnsys Employee
The qINTERCONNECT modules are installed into the Lumerical installation. You will have to use the Python that is bundled with Lumerical. Also the Lumerical Python API install path should be in the PYTHONPATH not in the PATH. See below:Â
PATH=C:\Program Files\Lumerical\v242\bin;C:\Program Files\Lumerical\v242\Python
PYTHONPATH=C:\Program Files\Lumerical\v242\api\pythone.g. Run the qINTERCONNECT script using our bundled Python,Â
"C:\Program Files\Lumerical\v242\Python\python.exe" Â NLS_ideal.py
I will check with the team which modules needs to be installed or used when you are running your own Python installation.Â
-
November 15, 2024 at 5:55 pmvenuskdSubscriber
I opened the
NLS_ideal.py
script using the 'Open Script' option and ran the code directly. It worked without any issues, so I am unsure what needs to be changed. Could you please clarify what the problem might be with this approach?Â
My main issue is this: how I can run the code in Spyder I mean (via external Python environment) not only from Interconncet bundled script ?
Â
Additionally, I have another question. May I ask how I can view the circuit in a graphical interface? I noticed in the provided Link that a circuit is generated. However, after running all three codes in INTERCONNECT, I do not see a similar circuit. Could you please guide me on how to achieve this?
-
-
November 15, 2024 at 7:33 pmLitoAnsys Employee
From the KB >>Getting started with qINTERCONNECT – Ansys Optics, When running outside of the CAD/IDE, you will have to use the Python that we bundle.Â
Let me check with the team if qinterconnect can be run using your own installation of Python.Â
-
- You must be logged in to reply to this topic.
- Errors Running Ring Modulator Example on Cluster
- Difference between answers in version 2024 and 2017 lumerical mode solution
- INTERCONNECT – No results unless rerun simulation until it gives any
- Import material .txt file with script
- Trapezoidal ring
- Help for qINTERCONNECT
- Issues with getting result from interconnent analysis script
- Topology Optimization Error
- Edge Coupler EME Example Issue
- The two modes overlap the integral
-
1191
-
508
-
488
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.