question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Complete the integration of multi-controlled qubit gates

See original GitHub issue

After migrating to Terra from Aqua, the multi-controlled qubit gates are missing tests. Since tests for these gates still exist in Aqua, they could simply be migrated as well. Is there a reason why they have not yet been imported to Terra?

Also, they are not yet gate objects. Once they are, we can also use these to override the control of the Toffoli and rotation gates to return these, more efficient controlled gate versions if the number of control qubits is larger than 1 (related to #3631).

This concerns the following gates:

mct mcrx mcry mcrz rccx rcccx

Plan:

  • Move the tests for these gates to Terra
  • Implement the relative-phase Toffoli gates
  • Implement the multi-controlled U1 gate
  • Implement the multi-controlled X gate
  • Implement the multi-controlled rotations
  • Port the multi-controlled multi-target X gate from Aqua
  • Port the boolean logic gates from Aqua

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kdkcommented, Jan 13, 2020

When the tests are migrated, we should include https://github.com/Qiskit/qiskit-aqua/blob/master/qiskit/aqua/circuits/gates/boolean_logical_gates.py and their tests so they can be removed from aqua.

0reactions
Cryoriscommented, Apr 1, 2021

Closing in favor of #4451.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Design and integration of single-qubit rotations and two-qubit ...
Here, we show that we can overcome these limitations and execute a multitude of native two-qubit gates, together with single-qubit control, in a ......
Read more >
Quantum Information and Computation Chapter 5
A quantum computer processes qubits. We will assume that it too is equipped with a discrete set of fundamental components, called quantum gates....
Read more >
How to simulate multi-qubit circuits in quantum computing
We can use the standard three-qubit GHZ circuit —which contains a Hadamard gate on the first qubit followed by two CNOT gates between...
Read more >
Summary of Quantum Operations - Qiskit
Multi -Qubit Gates¶ · Mathematical Preliminaries¶ · Basis vector ordering in Qiskit¶ · Controlled operations on qubits¶.
Read more >
Unitary Dynamics and Quantum Circuits
Figure 1: (a) Quantum circuit for two qubits showing two one-qubit gates and a CNOT gate. (b) CNOT and controlled-X are the same...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found