-
-
Notifications
You must be signed in to change notification settings - Fork 46.7k
Create superdense_coding.py #7349
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
Conversation
for more information, see https://pre-commit.ci
Dear @cclauss, |
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 for your pull request!🤩
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 fix the qasm_simulator
deprecation (#7308)
# measure the circuit | ||
quantum_circuit.measure(qr, cr) | ||
|
||
backend = Aer.get_backend("qasm_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.
qasm_simulator
has been deprecated (#7308)
bit_2: bit 2 of classical information to send. | ||
Returns: | ||
qiskit.result.counts.Counts: counts of send state. | ||
>>> superdense_coding(0,0) |
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.
>>> superdense_coding(0,0) | |
>>> superdense_coding(0,0) |
@prateekiiest I had made a pretty important comment that |
This reverts commit a536279.
This reverts commit a536279.
@CaedenPH made a revert PR. sorry for missing that |
Closing as per PR comments. Thanks |
Describe your change:
Add quantum superdense coding algorithm. The principal idea is to send two classical bits in to one quantum bit (qubit.)
Checklist:
Fixes: #{$ISSUE_NO}
.