Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-45894: Fix dimension universe instantiation in subprocesses #304

Merged
merged 4 commits into from
Aug 24, 2024

Commits on Aug 23, 2024

  1. Update pre-commit config

    andy-slac committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    b6ce82d View commit details
    Browse the repository at this point in the history
  2. Improve logging initialization in child processes (DM-45894)

    Subprocess parameters are now pickled manually to guarantee that
    logging is initialized properly in a subprocess before any complex
    unpickling happens.
    andy-slac committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    0946f50 View commit details
    Browse the repository at this point in the history
  3. Fix dimension universe instantiation in subprocesses (DM-45894)

    With run-qbb when dimension universe is not the default one, we need
    to make sure that that universe is instantiated from a configuration
    in a subprocess before unpickling anything that requires that universe.
    The fix uses butler factory to do that, using its unpickle method,
    and there is some complicated logic in executors to make sure that
    unpickling of that factory happens first thing in a subprocess.
    There may be an easier way to enforce that but it would require
    interface changes for MPGraphExecutor or SingleQuantumExecutor.
    andy-slac committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    945ef80 View commit details
    Browse the repository at this point in the history
  4. Add news fragment

    andy-slac committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    66e7b6c View commit details
    Browse the repository at this point in the history