-
Notifications
You must be signed in to change notification settings - Fork 377
Vibrational structure calculations #1232
Vibrational structure calculations #1232
Conversation
…hc don't support it.
…netic terms. Removed the omega dependance since it's already taken care of by the parser. added the number of modals as a argument such that it can be modulated by the user.
…lt/qiskit-aqua into bosonic_operator
…lt/qiskit-aqua into bosonic_operator
circuit.u1(-parameters[count] / 4 + np.pi / 4, q[i]) | ||
circuit.u1(-parameters[count] / 4 - np.pi / 4, q[r]) |
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.
The U1 gate is being deprecated you should use p
(for phase-gate) instead, see also Qiskit/qiskit#5083.
circuit.u1(-parameters[count] / 4 + np.pi / 4, q[i]) | |
circuit.u1(-parameters[count] / 4 - np.pi / 4, q[r]) | |
circuit.p(-parameters[count] / 4 + np.pi / 4, q[i]) | |
circuit.p(-parameters[count] / 4 - np.pi / 4, q[r]) |
(Also in the other places in the code 🙂)
can we add a release note and work out the changes on this so that we can merge it ? |
In CHC and UVCC, since num_qubits now defaults to None, can we check in construct _circuit that if the value is None and raise and error (like is done for parameter len check) with a message that num_qubits was not set. This way its a bit more obvious to an end user when they have not done things correctly rather than having to figure things out based on some exception later when it tries to use num qubits when its None. Update: I added tests to check. |
Summary
Related to #1231
Details and comments
Implementation of methods for vibrational structure calculations