Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Correction in quantum register declaration for composite Gates exampl… #996

Merged
merged 4 commits into from
Aug 12, 2020

Conversation

Emixem
Copy link
Contributor

@Emixem Emixem commented Aug 10, 2020

Summary

Correction in quantum register declaration for composite Gates example.

Details and comments

Change

q = QuantumRegister(3, 'q')
circ = QuantumCircuit(q)
circ.h(qr[0])
circ.cx(qr[0], qr[1])
circ.cx(qr[1], qr[2])
circ.append(sub_inst, [q[1], q[2]])

to

qr = QuantumRegister(3, 'q')
circ = QuantumCircuit(q)
circ.h(qr[0])
circ.cx(qr[0], qr[1])
circ.cx(qr[1], qr[2])
circ.append(sub_inst, [qr[1], qr[2]])

@CLAassistant
Copy link

CLAassistant commented Aug 10, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@nonhermitian nonhermitian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Many thanks

@nonhermitian nonhermitian merged commit 35a78c7 into Qiskit:master Aug 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants