-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Removed code deprecated in 0.22 [transpiler and providers] #10872
New issue
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e10bc1f
Removed code deprecated in 0.22 [transpiler and providers] (#10813)
santhosh-gnse 13398e9
Merge branch 'main' of https://github.com/Matrixmang0/qiskit into rem…
santhosh-gnse 12f5a50
Update release note and change input argument variable name
santhosh-gnse 98c1a28
Merge branch 'main' into remove-deprecate
santhosh-gnse 16bf6d5
Merge branch 'Qiskit:main' into remove-deprecate
santhosh-gnse f99f7cc
Merge branch 'main' of https://github.com/Matrixmang0/qiskit into rem…
santhosh-gnse 143f1eb
Merge branch 'remove-deprecate' of https://github.com/Matrixmang0/qis…
santhosh-gnse 3bb4c80
Edited the docstring for the arg run_input
santhosh-gnse a978fc6
Update qiskit/providers/basicaer/qasm_simulator.py
santhosh-gnse 8b36424
Update releasenotes/notes/remove-deprecated-code-in-0.22.0-139fa09ee0…
santhosh-gnse 88c4419
Update releasenotes/notes/remove-deprecated-code-in-0.22.0-139fa09ee0…
santhosh-gnse 72b0544
Merge branch 'main' into remove-deprecate
santhosh-gnse 0dc1ce5
Merge branch 'main' into remove-deprecate
santhosh-gnse 1bbbb3b
Update qiskit/providers/basicaer/qasm_simulator.py
1ucian0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
releasenotes/notes/remove-deprecated-code-in-0.22.0-139fa09ee0cc6df9.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| upgrade: | ||
| - | | ||
| Removed the argument `qubit_channel_mapping` in :class:`qiskit.transpiler.passes.calibration.rzx_builder.RZXCalibrationBuilder` | ||
|
|
||
|
santhosh-gnse marked this conversation as resolved.
Outdated
|
||
| - | | ||
| Replaced the argument `qobj[Qobj]` in :meth:`qiskit.providers.aer.QasmSimulator.run()` with `run_input[QuantumCircuit or Schedule or list]` | ||
|
santhosh-gnse marked this conversation as resolved.
Outdated
|
||
|
|
||
| Here is an example to migrate yor code:: | ||
|
|
||
| # Importing necessary Qiskit libraries | ||
| from qiskit import transpile, QuantumCircuit | ||
| from qiskit.aer import QasmSimulator | ||
|
|
||
| # Defining the Quantum Circuit | ||
| qc = QuantumCircuit(2) | ||
| qc.h(0) | ||
| qc.cx(0, 1) | ||
| qc.measure_all() | ||
|
|
||
| # Transpile the circuit to optimize for the target simulator | ||
| simulator = QasmSimulator() | ||
| transpiled_circuit = transpile(qc, simulator) | ||
| # Run the simulation | ||
| job = simulator.run(transpiled_circuit, shots=1024) | ||
| # Get the simulation result | ||
| result = job.result() | ||
|
|
||
|
|
||
|
|
||
| All these were deprecated since 0.22 (released on October 13, 2022) and now they are removed. | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This part of the docstring doesn't look necessary here.
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.
Thank you once more for your assistance. I too felt the same, let me retain the original wording in the string. Your help is greatly appreciated.