Skip to content

Cleanup unneeded Register use in standard library definitions.#5529

Closed
kdk wants to merge 3 commits intoQiskit:mainfrom
kdk:quantumcircuit-optional-registers-library-cleanup
Closed

Cleanup unneeded Register use in standard library definitions.#5529
kdk wants to merge 3 commits intoQiskit:mainfrom
kdk:quantumcircuit-optional-registers-library-cleanup

Conversation

@kdk
Copy link
Copy Markdown
Member

@kdk kdk commented Dec 15, 2020

Summary

Following #5519 , removes unneeded QuantumRegister(N, 'q')s from standard library.

Details and comments

on-hold until #5519 .

Commits in this PR (without #5519, #5515, #5504, #5498 and #5486): https://github.com/Qiskit/qiskit-terra/pull/5529/files/e7eab4a76aa311b4c7b22cbca5d5ce9b86ba71c4..13c4e0c8856d85f3ecf405e75d56cde263b9a74f

@kdk kdk added on hold Can not fix yet optional-registers labels Dec 15, 2020
@kdk kdk added this to the 0.17 milestone Dec 15, 2020
@kdk kdk force-pushed the quantumcircuit-optional-registers-library-cleanup branch 2 times, most recently from 4a96967 to c258e92 Compare January 20, 2021 22:53
@kdk kdk force-pushed the quantumcircuit-optional-registers-library-cleanup branch from c258e92 to 22edfe2 Compare March 22, 2021 22:03
@kdk kdk modified the milestones: 0.17, 0.18 Mar 22, 2021
@1ucian0
Copy link
Copy Markdown
Member

1ucian0 commented Jun 1, 2021

#5519 merged, removing on hold.

@1ucian0 1ucian0 removed the on hold Can not fix yet label Jun 1, 2021
@kdk kdk modified the milestones: 0.18, 0.19 Jun 15, 2021
@kdk kdk force-pushed the quantumcircuit-optional-registers-library-cleanup branch from 22edfe2 to 2add781 Compare June 17, 2021 15:17
@jakelishman
Copy link
Copy Markdown
Member

jakelishman commented Aug 9, 2021

What's the status of this PR, now that #6496 (deprecating implicit register creation in QuantumCircuit) is also tagged for the 0.19 milestone? Satisfying #6496 would obsolete this PR, since this changes here would become deprecated behaviour.

Edit: after a bit more reading, I realise that implicit register creation is deprecated, but implicit qubit creation isn't. So QuantumCircuit(2, 2) remains valid, just that there won't be a register created.

@mtreinish
Copy link
Copy Markdown
Member

I'm going to close this as stale as it hasn't been updated in 2 yrs and has extensive merge conflicts. If this is still needed or there is ongoing work on it please feel free to reopen it.

@mtreinish mtreinish closed this Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants