• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / qiskit-terra / 29826
87%

Build:
DEFAULT BRANCH: main
Ran 16 May 2021 07:23PM UTC
Jobs 1
Files 854
Run time 45s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
29826

push

travis-ci-com

web-flow
Correctly require is_good_state on AmplificationProblem constructor (#6417)

* Correctly require is_good_state on AmplificationProblem constructor

This commit fixes an issue with the constructor of the
AmplificationProblem class. It previously treated the ``is_good_state``
kwarg as optional, however it is required in most cases. This updates
the constructor to raise if it's not present and also clears up the
documentation. It also adds a default case for when a PhaseOracle
object is used for the oracle, we can leverage the
``evaluate_bitstring`` method provided to evaluate a state during
grover.

Fixes #6416

* Update qiskit/algorithms/amplitude_amplifiers/amplification_problem.py

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

* Fix lint

* Update tests

* Fix lint

Co-authored-by: Julien Gacon <gaconju@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

43644 of 53444 relevant lines covered (81.66%)

0.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29826.1 (PYTHON="coverage run --source qiskit --parallel-mode" QISKIT_TEST_CAPTURE_STREAMS=1) 16 May 2021 07:23PM UTC 0
81.66
Travis Job 29826.1
Source Files on build 29826
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #29826
  • f104bbf2 on github
  • Prev Build on main (#29813)
  • Next Build on main (#29849)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc