No good way to define pass manager for use in transpile
See original GitHub issueWhat 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:
- Created 4 years ago
- Comments:13 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I do not care. I just want the functionality.
I implemented the @ajavadia 's approach in https://github.com/Qiskit/qiskit-terra/pull/3290
That would close this issue?