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

Add some explanation and example to circuit library documentation #7354

Merged
merged 56 commits into from
Apr 19, 2022

Conversation

1ucian0
Copy link
Member

@1ucian0 1ucian0 commented Dec 6, 2021

Summary

In Qiskit/qiskit.org#2009 there is a redesign of the qiskit.org main page where one of aspect to highlight from Qiskit is the Circuit Library:

Screen Shot 2021-12-02 at 12 52 08 PM

The Learn more -> link in the Circuit Library box will point to https://qiskit.org/documentation/apidoc/circuit_library.html However, this page is a bit rough for the newcomer. This PR is an attempt to create a slightly more welcomed place, with a short explanation on what's the library and how to use it.

Comments on how to do that are very much welcomed.

Details and comments

In addition to add a paragraph (mostly copied from https://qiskit.org/overview#circuits) and an example, I also included:

  • added a section called Standard Instructions

@1ucian0 1ucian0 added the documentation Something is not clear or an error documentation label Dec 6, 2021
@1ucian0 1ucian0 changed the title Add some explanation and example to circuit library Add some explanation and example to circuit library documentation Dec 6, 2021
@coveralls
Copy link

coveralls commented Dec 9, 2021

Pull Request Test Coverage Report for Build 2190126833

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 83.97%

Totals Coverage Status
Change from base Build 2187018298: 0.0%
Covered Lines: 54241
Relevant Lines: 64596

💛 - Coveralls

@1ucian0 1ucian0 marked this pull request as ready for review January 24, 2022 15:00
@1ucian0 1ucian0 requested a review from a team as a code owner January 24, 2022 15:00
Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

I haven't actually built the documentation myself to check, but it would be good to do that and to ensure that all the inserted cross-references actually do link to the expected places.

qiskit/circuit/library/__init__.py Outdated Show resolved Hide resolved
qiskit/circuit/library/__init__.py Outdated Show resolved Hide resolved
qiskit/circuit/library/__init__.py Outdated Show resolved Hide resolved
qiskit/circuit/library/__init__.py Outdated Show resolved Hide resolved
qiskit/circuit/library/__init__.py Outdated Show resolved Hide resolved
qiskit/circuit/library/__init__.py Outdated Show resolved Hide resolved
qiskit/circuit/library/__init__.py Show resolved Hide resolved
qiskit/circuit/library/__init__.py Outdated Show resolved Hide resolved
qiskit/circuit/library/standard_gates/__init__.py Outdated Show resolved Hide resolved
qiskit/circuit/library/__init__.py Outdated Show resolved Hide resolved
@mtreinish mtreinish added the stable backport potential The bug might be minimal and/or import enough to be port to stable label Mar 31, 2022
@mtreinish mtreinish removed this from the 0.20 milestone Mar 31, 2022
@jakelishman jakelishman added this to the 0.20.1 milestone Mar 31, 2022
@mtreinish mtreinish removed this from the 0.20.1 milestone Apr 18, 2022
@jakelishman
Copy link
Member

I pushed a change to fix the docs build here. I had to remove the documenting of qiskit.extensions.Initialize from qiskit.circuit.library because it's not importable from that location, so the docs would be misleading if we could do that but also autosummary won't find it since it starts with qiskit for some reason I'm not 100% sure.

@1ucian0 1ucian0 requested a review from mtreinish April 19, 2022 11:03
@1ucian0 1ucian0 added this to the 0.20.1 milestone Apr 19, 2022
mtreinish
mtreinish previously approved these changes Apr 19, 2022
qiskit/circuit/library/__init__.py Outdated Show resolved Hide resolved
@mergify mergify bot merged commit aee0dc4 into Qiskit:main Apr 19, 2022
mergify bot pushed a commit that referenced this pull request Apr 19, 2022
)

* Add some explanation and example to circuit library

* remove BooleanExpression

* missing gates

* standard and directives

* title mod

* generalized gates

* boolean logic circuits

* Basis Change Circuits and Arithmetic Circuits

* section Amplitude Functions is duplicated. (maybe a bad merge in #5142?)

* N-local and feature map

* dup entry

* Template circuits

* ups

* line too long

* address #7354 (comment)

* addressing #7354 (comment)

* addressing #7354 (comment)

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Jake Lishman <[email protected]>

* import to address #7354 (comment)

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Jake Lishman <[email protected]>

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Jake Lishman <[email protected]>

* addressing #7354 (comment)

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Matthew Treinish <[email protected]>

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Matthew Treinish <[email protected]>

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Matthew Treinish <[email protected]>

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Matthew Treinish <[email protected]>

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Matthew Treinish <[email protected]>

* Apply suggestions from code review

Co-authored-by: Matthew Treinish <[email protected]>

* directives

* pretty colors

* undo changes in standard_gates/__init__.py

* operations

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Matthew Treinish <[email protected]>

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Julien Gacon <[email protected]>

* Apply suggestions from code review

Co-authored-by: Julien Gacon <[email protected]>

* Apply suggestions from code review

Co-authored-by: Julien Gacon <[email protected]>

* example

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Julien Gacon <[email protected]>

* Fix Sphinx errors

* Fix duplicate definitions and indentation

* Fix typo

Co-authored-by: Jake Lishman <[email protected]>
Co-authored-by: Matthew Treinish <[email protected]>
Co-authored-by: Julien Gacon <[email protected]>
Co-authored-by: Jake Lishman <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit aee0dc4)
mergify bot added a commit that referenced this pull request Apr 19, 2022
) (#7955)

* Add some explanation and example to circuit library

* remove BooleanExpression

* missing gates

* standard and directives

* title mod

* generalized gates

* boolean logic circuits

* Basis Change Circuits and Arithmetic Circuits

* section Amplitude Functions is duplicated. (maybe a bad merge in #5142?)

* N-local and feature map

* dup entry

* Template circuits

* ups

* line too long

* address #7354 (comment)

* addressing #7354 (comment)

* addressing #7354 (comment)

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Jake Lishman <[email protected]>

* import to address #7354 (comment)

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Jake Lishman <[email protected]>

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Jake Lishman <[email protected]>

* addressing #7354 (comment)

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Matthew Treinish <[email protected]>

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Matthew Treinish <[email protected]>

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Matthew Treinish <[email protected]>

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Matthew Treinish <[email protected]>

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Matthew Treinish <[email protected]>

* Apply suggestions from code review

Co-authored-by: Matthew Treinish <[email protected]>

* directives

* pretty colors

* undo changes in standard_gates/__init__.py

* operations

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Matthew Treinish <[email protected]>

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Julien Gacon <[email protected]>

* Apply suggestions from code review

Co-authored-by: Julien Gacon <[email protected]>

* Apply suggestions from code review

Co-authored-by: Julien Gacon <[email protected]>

* example

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Julien Gacon <[email protected]>

* Fix Sphinx errors

* Fix duplicate definitions and indentation

* Fix typo

Co-authored-by: Jake Lishman <[email protected]>
Co-authored-by: Matthew Treinish <[email protected]>
Co-authored-by: Julien Gacon <[email protected]>
Co-authored-by: Jake Lishman <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit aee0dc4)

Co-authored-by: Luciano Bello <[email protected]>
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 priority: medium stable backport potential The bug might be minimal and/or import enough to be port to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants