-
-
Couldn't load subscription status.
- Fork 31
♻️ Merge Placement and Routing into Layout Synthesis #713
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
dd3acac
🏗️ Move router and placer into layout_synthsizer subdir
ystade 5765cfb
✨ Add Placemen and routing synthesizer template class
ystade 86a1239
✨ Add layout synthesizer base class for interface definition
ystade 9fea83f
📝 Refine docstrings
ystade 2897529
🎨 Refactor Compiler class
ystade ab60977
🧪 Adapt tests
ystade a01c3b3
🐛 Fix constructors
ystade a840b5d
🎨 Imrpove logging
ystade 1ab8475
🐛 Fix bindings
ystade dbc52e8
📝 Update changelog
ystade 933545f
Merge remote-tracking branch 'origin/main' into joined-placer-router
ystade 64952e6
🩹 Fix links
ystade 79f180c
✏️ Fix typo
ystade 8c61a5a
📝 Make the change breaking
ystade f37302a
🐛 Fix synthesis timing and expose statistics
ystade c8fb14c
🩹 Fix test
ystade 6ca8e24
🎨 Apply suggestions from code review
ystade 5af4325
Merge branch 'main' into joined-placer-router
denialhaag File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
include/na/zoned/layout_synthesizer/LayoutSynthesizerBase.hpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| /* | ||
| * Copyright (c) 2023 - 2025 Chair for Design Automation, TUM | ||
| * Copyright (c) 2025 Munich Quantum Software Company GmbH | ||
| * All rights reserved. | ||
| * | ||
| * SPDX-License-Identifier: MIT | ||
| * | ||
| * Licensed under the MIT License | ||
| */ | ||
|
|
||
| #pragma once | ||
|
|
||
| #include "na/zoned/Types.hpp" | ||
|
|
||
| #include <unordered_set> | ||
| #include <vector> | ||
|
|
||
| namespace na::zoned { | ||
| /** | ||
| * The Abstract Base Class for the Layout Synthesizer of the MQT's Zoned Neutral | ||
| * Atom Compiler. | ||
| */ | ||
| class LayoutSynthesizerBase { | ||
| public: | ||
| virtual ~LayoutSynthesizerBase() = default; | ||
| /** | ||
| * Collection of the placement and routing results. | ||
| */ | ||
| struct Layout { | ||
| std::vector<Placement> placement; ///< The placement of the qubits | ||
| std::vector<Routing> routing; ///< The routing of the qubits | ||
| }; | ||
| /** | ||
| * This function defines the interface of the layout synthesizer. | ||
| * @param nQubits is the number of qubits in the quantum computation. | ||
| * @param twoQubitGateLayers is a vector of two-qubit gate layers, | ||
| * where each layer contains the two-qubit gates to be placed. | ||
| * @param reuseQubits is a vector of qubit sets that can be reused | ||
| * between layers. | ||
| * @returns A Layout object containing the placement and routing results. | ||
| */ | ||
| [[nodiscard]] virtual auto | ||
| synthesize(size_t nQubits, | ||
| const std::vector<TwoQubitGateLayer>& twoQubitGateLayers, | ||
| const std::vector<std::unordered_set<qc::Qubit>>& reuseQubits) | ||
| -> Layout = 0; | ||
| }; | ||
| } // namespace na::zoned |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.