-
Notifications
You must be signed in to change notification settings - Fork 269
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
Add a Mapper Tutorial #243
Conversation
examples/mapper_tutorial.ipynb
Outdated
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"We can see that mapping a `QFT` to a two dimensional grid layout requires less `CX` gates than mapping to a linear chain as expected." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fewer CX
gates
examples/mapper_tutorial.ipynb
Outdated
"\n", | ||
"ProjectQ allows a user to write a quantum program in a high-level language. For example, one can apply quantum operations on n-qubits, e.g., `QFT`, and the compiler will decompose this operations into two qubit and single qubit gates. See the [compiler_tutorial](https://github.com/ProjectQ-Framework/ProjectQ/tree/develop/examples) for an introduction.\n", | ||
"\n", | ||
"After decomposing a quantum program into two qubit and single qubit gates which a quantum computer supports, we have to take the physical layout of these qubits into account. Two qubit gates are only possible if the qubits are next to each other. For example the qubits could be arranged in a linear chain or a two dimensional grid and only nearest neighbour qubits can perform a two qubit gate. ProjectQ uses **mappers** which move the positions of the qubits close to each other using `Swap` operations in order that we can execute a two qubit gate.\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two-qubit gates, two-dimensional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks! 👍
There are just a few typos.
Done |
No description provided.