Skip to content
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

Merged
merged 4 commits into from
Jul 21, 2018
Merged

Add a Mapper Tutorial #243

merged 4 commits into from
Jul 21, 2018

Conversation

damiansteiger
Copy link
Contributor

No description provided.

"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."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fewer CX gates

"\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",
Copy link
Contributor

@thomashaener thomashaener Jul 21, 2018

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

Copy link
Contributor

@thomashaener thomashaener left a 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.

@damiansteiger
Copy link
Contributor Author

Done

@damiansteiger damiansteiger merged commit a989adf into develop Jul 21, 2018
@damiansteiger damiansteiger deleted the feature/mapper_tutorial branch July 21, 2018 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants