Skip to content
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

Update README.md to include sampler and estimator #10584

Merged
merged 55 commits into from Aug 21, 2023
Merged

Conversation

jaygambetta
Copy link
Member

Summary

Details and comments

@jaygambetta jaygambetta requested a review from a team as a code owner August 8, 2023 01:28
@qiskit-bot
Copy link
Collaborator

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

@coveralls
Copy link

coveralls commented Aug 8, 2023

Pull Request Test Coverage Report for Build 5880933220

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 22 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.02%) to 87.244%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 4 91.14%
crates/qasm2/src/parse.rs 18 96.2%
Totals Coverage Status
Change from base Build 5876541463: -0.02%
Covered Lines: 74289
Relevant Lines: 85151

💛 - Coveralls

README.md Outdated
@@ -1,11 +1,11 @@
# Qiskit Terra
[![License](https://img.shields.io/github/license/Qiskit/qiskit-terra.svg?style=popout-square)](https://opensource.org/licenses/Apache-2.0)<!--- long-description-skip-begin -->[![Release](https://img.shields.io/github/release/Qiskit/qiskit-terra.svg?style=popout-square)](https://github.com/Qiskit/qiskit-terra/releases)[![Downloads](https://img.shields.io/pypi/dm/qiskit-terra.svg?style=popout-square)](https://pypi.org/project/qiskit-terra/)[![Coverage Status](https://coveralls.io/repos/github/Qiskit/qiskit-terra/badge.svg?branch=main)](https://coveralls.io/github/Qiskit/qiskit-terra?branch=main)[![Minimum rustc 1.64.0](https://img.shields.io/badge/rustc-1.64.0+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)<!--- long-description-skip-end -->

**Qiskit** is an open-source framework for working with noisy quantum computers at the level of pulses, circuits, and algorithms.
**Qiskit** is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and functions.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • extended quantum circuits: I suspect this means dynamic quantum circuits (or just dynamic circuits). Otherwise, I'm unsure about its meaning. I quick search in the documentation did not help
  • operators: Maybe this can link to https://qiskit.org/documentation/stubs/qiskit.quantum_info.Operator.html ?
  • functions: Without context, this word is too generic. Suggestion: quantum primitives or just primitives? I prefer the first one as it is less generic.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We defined the extend quantum circuit in the openqasm and yes I agree we have lost this (I am not sure what version removed it) and we need to bring it back. It does includes dynamics etc. The good news is it is still in the description of qiskit.

Operators is the default way for working with quantum observables. They are an operator and we can call it quantum operators is you need (but there is too many quantums)

Functions are just the primitives and I want to keep it general you can put a quantum function there if need be.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the definition of "extended quantum circuits" here: https://arxiv.org/abs/2104.14722 (second paragraph of the introduction).

Linking to the Operator docs in quantum_info would be fine, but the terms is unlikely to be confused with other meanings of "operator" in this context.

@jaygambetta's use of "functions" is perhaps novel. Can we just say "primitives" for now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im good with primitives but I do feel we need to own the visions of quantum functions as we go forward.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how do I edit it to primitives in the web version of GitHub. I see that I could just commit your other changes?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@1ucian0 1ucian0 added the on hold Can not fix yet label Aug 8, 2023
@1ucian0
Copy link
Member

1ucian0 commented Aug 8, 2023

Labeling as on hold as there is a chain of changes going on the README right now: mtreinish#19 is on top of #10530 .

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
jaygambetta and others added 5 commits August 8, 2023 09:14
Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>
Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>
Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>
Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>
Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
jaygambetta and others added 3 commits August 8, 2023 09:18
Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>
Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>
Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
jaygambetta and others added 2 commits August 8, 2023 09:20
Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>
Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>
blakejohnson
blakejohnson previously approved these changes Aug 14, 2023
1ucian0
1ucian0 previously approved these changes Aug 16, 2023
Copy link
Member

@1ucian0 1ucian0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready to merge. The rest of the open discussions can be followed in independent issues.

@1ucian0 1ucian0 enabled auto-merge August 16, 2023 11:00
@1ucian0 1ucian0 added this pull request to the merge queue Aug 16, 2023
README.md Outdated Show resolved Hide resolved
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 16, 2023
Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>
README.md Outdated Show resolved Hide resolved
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
@blakejohnson
Copy link
Contributor

We need a code owner to reapprove to merge.

@1ucian0 1ucian0 added this pull request to the merge queue Aug 21, 2023

This framework allows for building, transforming, and visualizing quantum circuits. It also contains a compiler that supports
different quantum computers and a common interface for running programs on different quantum computer architectures.
This library is the core component of Qiskit, which contains the building blocks for creating and working with quantum circuits, quantum operators, and primitive functions (sampler and estimator).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This library is the core component of Qiskit, which contains the building blocks for creating and working with quantum circuits, quantum operators, and primitive functions (sampler and estimator).
This library is the core component of Qiskit, which contains the building blocks for creating and working with quantum circuits, quantum operators, and primitive functions (Sampler and Estimator).

This framework allows for building, transforming, and visualizing quantum circuits. It also contains a compiler that supports
different quantum computers and a common interface for running programs on different quantum computer architectures.
This library is the core component of Qiskit, which contains the building blocks for creating and working with quantum circuits, quantum operators, and primitive functions (sampler and estimator).
It also contains a transpiler that supports optimizing quantum circuits and a quantum information toolbox for creating advanced quantum operators.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance at least one of these "quantum"s in this sentence isn't necessary?

and see if you can achieve this outcome. (Spoiler alert: this is not possible!)

Using the Qiskit-provided `qiskit.primitives.Sampler` and `qiskit.primitives.Estimator` will not take you very far. The power of quantum computing cannot be simulated
on classical computers and you need to use real quantum hardware to scale to larger quantum circuits. However, running a quantum
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
on classical computers and you need to use real quantum hardware to scale to larger quantum circuits. However, running a quantum
on classical computers; you need real quantum hardware to scale to larger quantum circuits. However, running a quantum


Using the Qiskit-provided `qiskit.primitives.Sampler` and `qiskit.primitives.Estimator` will not take you very far. The power of quantum computing cannot be simulated
on classical computers and you need to use real quantum hardware to scale to larger quantum circuits. However, running a quantum
circuit on hardware requires rewriting them to the basis gates and connectivity of the quantum hardware.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
circuit on hardware requires rewriting them to the basis gates and connectivity of the quantum hardware.
circuit on hardware requires rewriting to the basis gates and connectivity of the quantum hardware.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(the "them" was a little ambiguous but reads ok when just removing it)


```python
{'00': 513, '11': 511}
from qiskit import transpile
qc_transpiled = transpile(qc_example, basis_gates = ['cz', 'sx', 'rz'], coupling_map =[[0, 1], [1, 2]] , optimization_level=3)
```

For further examples of using Qiskit you can look at the tutorials in the documentation here:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
For further examples of using Qiskit you can look at the tutorials in the documentation here:
For further examples, visit the tutorials in the documentation here:

Merged via the queue into main with commit 59223e3 Aug 21, 2023
16 checks passed
@blakejohnson
Copy link
Contributor

@abbycross this is now merged, so perhaps open a new PR with your edits?

@blakejohnson blakejohnson deleted the jaygambetta-patch-1 branch August 21, 2023 18:22
@abbycross
Copy link
Contributor

@abbycross this is now merged, so perhaps open a new PR with your edits?

Will do -- I guess it wasn't kidding when it said it would auto-merge once all requirements are met 😆

SamD-1998 pushed a commit to SamD-1998/qiskit-terra that referenced this pull request Sep 7, 2023
* Update README.md to include sampler and estimator

* Update README.md

* Update README.md

* Update README.md

Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>

* Update README.md

Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>

* Update README.md

Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>

* Update README.md

Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>

* Update README.md

Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>

* Update README.md

Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>

* Update README.md

Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>

* Update README.md

Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>

* Update README.md

Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>

* Update README.md

Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>

* Update README.md

Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>

* Update README.md

Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>

* Update README.md

* Update README.md

* Update README.md

Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>

* Update README.md

Co-authored-by: Abby Mitchell <23662430+javabster@users.noreply.github.com>

* Update README.md

Co-authored-by: abbycross <across@us.ibm.com>

* Update README.md

Co-authored-by: abbycross <across@us.ibm.com>

* Update README.md

Co-authored-by: abbycross <across@us.ibm.com>

* Update README.md

Co-authored-by: abbycross <across@us.ibm.com>

* Update README.md

Co-authored-by: abbycross <across@us.ibm.com>

* Update README.md

Co-authored-by: abbycross <across@us.ibm.com>

* Update README.md

Co-authored-by: abbycross <across@us.ibm.com>

* Update README.md

Co-authored-by: abbycross <across@us.ibm.com>

* Update README.md

Co-authored-by: abbycross <across@us.ibm.com>

* Update README.md

Co-authored-by: abbycross <across@us.ibm.com>

* Update README.md

Co-authored-by: abbycross <across@us.ibm.com>

* Update README.md

Co-authored-by: abbycross <across@us.ibm.com>

* Update README.md

Co-authored-by: abbycross <across@us.ibm.com>

* Update README.md

Co-authored-by: abbycross <across@us.ibm.com>

* Update README.md

Co-authored-by: abbycross <across@us.ibm.com>

* Update README.md

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>

* Update README.md

* Update README.md

* Update README.md

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>

* Update README.md

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>

* Update README.md

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>

* Update README.md

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>

* Update README.md

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>

* Update README.md

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>

* Update README.md

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>

* Update README.md

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>

* Update README.md

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>

* Update README.md

Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>

* Update README.md

Co-authored-by: Abby Mitchell <23662430+javabster@users.noreply.github.com>

* Update README.md

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>

* Apply suggestions from code review

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

* Apply suggestions from code review

* new example

* Update README.md

Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>

* Update README.md

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

---------

Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>
Co-authored-by: Abby Mitchell <23662430+javabster@users.noreply.github.com>
Co-authored-by: abbycross <across@us.ibm.com>
Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog documentation Something is not clear or an error documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants