question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No good way to define pass manager for use in transpile

See original GitHub issue

What is the expected enhancement?

Supposed I want to write a pass manager that can be used for any input circuit or backend, for example, and can be simply passed to transpile, e.g.

transpile(qc, backend, pass_manager=my_pass_manager)

I do not think that there is actually a way to do this without doing additional work in building TranpileConfig for initializing the PM, or just directly setting the properties upon construction. Instead, it would be nice if pass_manager could take a function, for example, that uses the internally computed TranspileConfig to initialize a PM (just like the preset ones do). Then a user defined pass_manager could be simply imported like any other function, and just passed to transpile with no additional work required.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nonhermitiancommented, Jul 23, 2019

I do not care. I just want the functionality.

0reactions
1ucian0commented, Oct 21, 2019

What if you want to do thousands of circuits in parallel like is possible in transpile?

I implemented the @ajavadia 's approach in https://github.com/Qiskit/qiskit-terra/pull/3290

That would close this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transpiler Passes and Pass Manager - Qiskit
This pipeline is determined by a pass manager, which schedules the passes and also allows passes to communicate with each other by providing...
Read more >
Configuring TypeScript compiler - inDepthDev
This article explores in depth essential TypeScript configuration options. We'll learn how to configure input and output files location, file types, transpiling ......
Read more >
Writing an LLVM Pass — LLVM 16.0.0git documentation
This document deals with the legacy pass manager. LLVM uses the new pass manager by default for the optimization pipeline (the codegen pipeline...
Read more >
rollup.js
To use Rollup with a configuration file, pass the --config or -c flags: ... defined in the ES2015 specification, since a proper understanding...
Read more >
babel-loader - webpack
This package allows transpiling JavaScript files using Babel and webpack. ... You can pass options to the loader by using the options property:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found