This repository was archived by the owner on Aug 21, 2023. It is now read-only.
Update notebooks for Qiskit 0.12.0 #777
Closed
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.
Summary
Updated
qiskit/advanced/terra/using_the_transpilerandqiskit/advanced/aqua/chemistry/programmatic_approachto work with qiskit v0.12.0Details and comments
In
using_the_transpiler.ipynbI removed the initial layout parameter from the BasicSwap, LookaheadSwap, and StochasticSwap, and I removed the initial_layout that was initialized to be input into these passes. There is also an updated list of passes.in
programmatic_approach.ipynbI added an import forqiskit.aqua.operators.Z2Symmetries. I changedqubitOp = qubitOp.two_qubit_reduced_operator(num_particles)toqubitOp = Z2Symmetries.two_qubit_reduction(qubitOp, num_particles)andprint(qubitOp.print_operators())toprint(qubitOp.print_details()). This removes deprecation warnings.