Closed dariavh closed 12 months ago
It looks good so far. I think I found the reasons for the failed tests (see comments). I'll stop annotating since you are currently modifying faster than I comment :D
@kottmanj Additional remark: The map_qubits
method in the QubitExcitationImpl
class has duplicate code from its base class QGateImpl
. I can refactor the method to call the base class and additionally map the qubits in the p0
generator. Is this change acceptable to you?
Looks ready to go! Thanks a lot.
Hi Jakob,
Following our discussion about the
GeneralizedRotation
gate, I have transferred theshifted_gates
functionality fromQubitExcitation
toGeneralizedRotation
. This modification allows theGeneralizedRotation
method to accept generators that do not necessarily have only two eigenvalues of +-r.