Skip to content

Fix performance issue for fermion system#1712

Closed
emstoudenmire wants to merge 1 commit into
mainfrom
MS_optimize_autofermion_2
Closed

Fix performance issue for fermion system#1712
emstoudenmire wants to merge 1 commit into
mainfrom
MS_optimize_autofermion_2

Conversation

@emstoudenmire

Copy link
Copy Markdown
Collaborator

This PR fixes a performance issue in the auto-fermion system, in a simpler way than the previous PR #1709.

The fix is as @mtfishman suggested, with the compute_permfactor function having a static inference is
sue that was making the construction of an MVector very slow.

The main changes here are:

  1. restrict second argument to compute_permfactor to be an NTuple so static inference succeeds
  2. modify permfactor functions to pass a tuple instead of splatting
  3. keep vararg wrapper to compute_permfactor as backwards compatibility to code in ITensorNetworks/src/treetensornetworks/opsum_to_ttn/opsum_to_ttn.jl (https://github.com/ITensor/ITensorNetworks.jl/blob/4e59ab208d67f7f9bbc64bdc213b70278bbc6fe0/src/treetensornetworks/opsum_to_ttn/opsum_to_ttn.jl#L390)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant