You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
The ControlledGate implementation uses these gates for the rotation and Toffoli gates so it should be as effecient. Perhaps if these gates were converted to proper gates, however, it would simplify the code in add_control further. Additionally there are tests for multicontrolled gates although perhaps not everything that is tested in aqua so that could be good to add.
Something else which could be added is their support for ancilla.
@Cryoris will the multi-qubit toffolis have the behaviour:
qc.mcrz(math.pi, [0,1,2], 3)
(i.e. take integers as well as / instead of Qubit objects)? It would be good to have this to be consistent with the other QuantumCircuit methods such as qc.x(0).
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:
Plan:
The text was updated successfully, but these errors were encountered: