Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
F
finesse3
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 81
    • Issues 81
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 5
    • Merge Requests 5
  • Requirements
    • Requirements
    • List
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • finesse
  • finesse3
  • Issues
  • #192

Closed
Open
Opened Oct 17, 2020 by Sean Leavey@sean-leaveyMaintainer

Tracing error with numeric tracer: __complex__ returned non-complex

The following kat script (generated from playground/mode_matching/eligo_frontend.py)...

l lsr
lens l1 f=0.19730823644975118
m meomfr R=0.5 T=0.5 L=0.0
m meombk R=0.5 T=0.5 L=0.0
nothing cam1
nothing cam2
nothing cam5
nothing cam6
s lsr_p1__l1_p1 portA=lsr.p1 portB=l1.p1 L=0.115
s l1_p2__meomfr_p1 portA=l1.p2 portB=meomfr.p1 L=0.145
s meomfr_p2__meombk_p1 portA=meomfr.p2 portB=meombk.p1 L=0.03 nr=2.3
s meombk_p2__cam1_p1 portA=meombk.p2 portB=cam1.p1 L=0.285
s cam1_p2__cam2_p1 portA=cam1.p2 portB=cam2.p1 L=0.037
s cam2_p2__cam5_p1 portA=cam2.p2 portB=cam5.p1 L=0.068
s cam5_p2__cam6_p1 portA=cam5.p2 portB=cam6.p1 L=0.02
gauss glsr_p1_o node=lsr.p1.o qx=(-0.09+0.4042143179289874j) qy=(-0.09+0.4042143179289874j)
model lambda 1.064e-06
model modes none 0

Throws the following error when run (using kat3 trace /path/to/script.kat --from lsr.p1.o --to cam6.p1.i --debug with the latest master):

    Traceback (most recent call last):
      File "/home/sean/Workspace/Repositories/finesse3/src/finesse/__main__.py", line 413, in trace
        trace_solution = model.propagate_beam(from_, to, symbolic=symbolic)
      File "/home/sean/Workspace/Repositories/finesse3/src/finesse/model.py", line 2622, in propagate_beam
        return tracetools.propagate_beam(
      File "src/finesse/tracing/tools.pyx", line 371, in finesse.tracing.tools.propagate_beam
        node_info, comp_info = propagate_beam_numeric(t, q_in, direction)
      File "src/finesse/tracing/tools.pyx", line 403, in finesse.tracing.tools.propagate_beam_numeric
        q1 = complex(info_at_space["q_in"])
    TypeError: __complex__ returned non-complex (type Operation)

When symbolic tracing is enabled (by adding --symbolic to the kat3 call above), it works as expected.

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
Alpha 1
Milestone
Alpha 1
Assign milestone
Time tracking
None
Due date
None
Reference: finesse/finesse3#192