Skip to content

Conversation

Cryoris
Copy link
Contributor

@Cryoris Cryoris commented Nov 2, 2020

Summary

Fixes #5320
Fixes #5321
Fixes #5322.

Details and comments

Fixes:

  • the helper qubits in the PiecewiseLinearPauliRotations can be re-used in each breakpoint intervals
  • in PolynomialPauliRotations, to many helper qubits were allocated and also mcrx and mcrz were provided with helper qubits even though they don't support them
  • the WeightedAdder also did not used the allocated helper qubit

Also deprecate the WeightedAdder.num_ancilla_qubits method in favor of WeightedAdder.num_ancillas and actually use the AncillaRegister type to construct Grover oracles more efficiently.

1ucian0 and others added 5 commits November 2, 2020 14:31
* added a method that implements piecewise polynomials that extends the piecewise linear class functionality, and a class to approximate the inverse function

* release notes

* updated header

* removed header encoding

* fixed ancilla

* remove old files

* Apply suggestions from code review

Co-authored-by: Julien Gacon <gaconju@gmail.com>

Co-authored-by: Julien Gacon <gaconju@gmail.com>
@kdk kdk added automerge Changelog: Bugfix Include in the "Fixed" section of the changelog Changelog: Deprecation Include in "Deprecated" section of changelog labels Dec 3, 2020
@mergify mergify bot merged commit 59d7172 into Qiskit:master Dec 4, 2020
@Cryoris Cryoris deleted the optimize-helper-qubits branch December 4, 2020 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog Changelog: Deprecation Include in "Deprecated" section of changelog
Projects
None yet
4 participants