We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(sent by a reader to @mercedesGS)
I believe that there is an error with QISKIT sample code at 3-5.
# Example 3-5: Custom conditional-phase # Set up the program reg = QuantumRegister(2, name='reg') qc = QuantumCircuit(reg) theta = math.pi / 2 qc.h(reg) qc.rz(theta/2, reg[1]) qc.cx(reg[0], reg[1]) qc.rz(-theta/2, reg[1]) qc.cx(reg[0], reg[1]) qc.rz(-theta/2, reg[0])
I believe that the sign of last theta shall be ‘theta/2’ rather than ‘-theta/2’
Please let me know your thought.
The text was updated successfully, but these errors were encountered:
machinelevel
No branches or pull requests
(sent by a reader to @mercedesGS)
I believe that there is an error with QISKIT sample code at 3-5.
I believe that the sign of last theta shall be ‘theta/2’ rather than ‘-theta/2’
Please let me know your thought.
The text was updated successfully, but these errors were encountered: