Skip to content
This repository was archived by the owner on Dec 7, 2021. It is now read-only.

Fix equality check for register#1458

Merged
manoelmarques merged 1 commit into
qiskit-community:masterfrom
ikkoham:fix-register
Nov 26, 2020
Merged

Fix equality check for register#1458
manoelmarques merged 1 commit into
qiskit-community:masterfrom
ikkoham:fix-register

Conversation

@ikkoham
Copy link
Copy Markdown
Contributor

@ikkoham ikkoham commented Nov 26, 2020

Summary

Terra changes __eq__ of Register. Qiskit/qiskit#5272
So now our CI does not pass.

I infer that the type of provided_register is Union[QuantumRegister, str]. Therefore, type (instance) check here is necessary.

@manoelmarques manoelmarques merged commit a7cf634 into qiskit-community:master Nov 26, 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