-
-
Notifications
You must be signed in to change notification settings - Fork 46.7k
Fix doctest tracebacks #7558
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
Fix doctest tracebacks #7558
Conversation
@@ -122,6 +122,7 @@ def decrypt_caesar_with_chi_squared( | |||
|
|||
>>> decrypt_caesar_with_chi_squared(12) | |||
Traceback (most recent call last): | |||
... |
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.
Please indent four spaces like the doctest docs do.
quantum/superdense_coding.py
Outdated
@@ -92,7 +92,7 @@ def superdense_coding(bit_1: int = 1, bit_2: int = 1) -> qiskit.result.counts.Co | |||
# measure the circuit | |||
quantum_circuit.measure(qr, cr) | |||
|
|||
backend = Aer.get_backend("qasm_simulator") | |||
backend = Aer.get_backend("aer_simulator") |
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 change was already merged?
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 change was already merged?
Must've forgotten to fetch
8aa3ddd
to
a536279
Compare
@cclauss Should I go through every doctest and indent each >>> x
Traceback (most recent call last):
... |
Optional to modify all files. I think the adoption of |
Describe your change:
Replace
File "/usr/bin..."
with...
Checklist:
Fixes: #{$ISSUE_NO}
.