Skip to content

cutqc2 run command with optimizations#25

Merged
Subashkatel merged 15 commits into
mainfrom
vb/optims
Nov 21, 2025
Merged

cutqc2 run command with optimizations#25
Subashkatel merged 15 commits into
mainfrom
vb/optims

Conversation

@vineetbansal
Copy link
Copy Markdown
Collaborator

@vineetbansal vineetbansal commented Nov 6, 2025

Major changes

  • Introduced a cutqc2 run command (initially cutqc2 cut did an implicit run as well). This step is MPI capable.
  • Documentation needs to be updated to reflect this!
  • Removed multithreading for run_subcircuits method in CutCircuit class (multi-threading interferes with GPU execution and actually slows things down. MPI is a more scalable approach).
  • Optimizations in implementation of Eq 3 - vectorized approach for binning.
  • GPU backend for AerSimulator is now used by default. This is configurable through config.yaml as well as environment variables. This may cause the CI to fail on Mac since it is enabled by default. This may need some tweaking in the CI workflows as well as a mention in the documentation. Additional dependencies have been introduced requirements.txt for this.

EDIT: All the TODOs above have been attended to.

Overall, a 56x speedup even if just using a single MPI node.

@vineetbansal
Copy link
Copy Markdown
Collaborator Author

@Subashkatel - I'm done with this PR. Feel free to review and merge.

@Subashkatel Subashkatel merged commit 965b812 into main Nov 21, 2025
5 of 6 checks passed
Copy link
Copy Markdown
Collaborator

@Subashkatel Subashkatel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

committed

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.

2 participants