-
-
Notifications
You must be signed in to change notification settings - Fork 36
🎨 [NA] Add 2Q-Gate Layer to Decomposer Interface #976
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
base: main
Are you sure you want to change the base?
Changes from all commits
dbadb35
d770ac8
9415700
5c16615
864d34f
97e29fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,12 +24,22 @@ class DecomposerBase { | |
| virtual ~DecomposerBase() = default; | ||
| /** | ||
| * This function defines the interface of the decomposer. | ||
| * | ||
| * The decomposer may change the layering produced by the scheduler and, | ||
| * hence, it receives the single-qubit and two-qubit gate layers. | ||
| * @param singleQubitGateLayers are the layers of single-qubit gates that are | ||
| * meant to be first decomposed into the native gate set. | ||
| * @return the new single-qubit gate layers | ||
| * @param twoQubitGateLayers are the layers of two-qubit gates that the | ||
| * decomposer may change. | ||
| * @return a new pair of single-qubit and two-qubit gate layers. This pair | ||
| * replaces the pair of single-qubit and two-qubit gate layers returned from | ||
| * the scheduler. There is always one single-qubit gate layer more than | ||
| * two-qubit gate layers. | ||
| */ | ||
| [[nodiscard]] virtual auto decompose( | ||
| const std::vector<SingleQubitGateRefLayer>& singleQubitGateLayers) const | ||
| -> std::vector<SingleQubitGateLayer> = 0; | ||
| [[nodiscard]] virtual auto | ||
| decompose(const std::vector<SingleQubitGateRefLayer>& singleQubitGateLayers, | ||
| const std::vector<TwoQubitGateLayer>& twoQubitGateLayers) const | ||
| -> std::pair<std::vector<SingleQubitGateLayer>, | ||
| std::vector<TwoQubitGateLayer>> = 0; | ||
|
Comment on lines
+27
to
+43
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Make the new decomposition result contract explicit. The compiler now feeds the returned 2Q layers into 🤖 Prompt for AI Agents |
||
| }; | ||
| } // namespace na::zoned | ||
Uh oh!
There was an error while loading. Please reload this page.