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 definition of Store instruction #10946

Closed
wants to merge 1 commit into from

Conversation

jakelishman
Copy link
Member

@jakelishman jakelishman commented Oct 2, 2023

Summary

This does not yet add the implementation of QuantumCircuit.store, which will come later as part of expanding the full API of QuantumCircuit to be able to support these runtime variables.

The is_lvalue helper is added generally to the classical.expr module because it's generally useful, while types.cast_kind is moved from being a private method in expr to a public-API function so Store can use it. These now come with associated unit tests.

Details and comments

Depends on #10944.

Close #10939.

Release note to be added when closing #10922.

@jakelishman jakelishman added Changelog: New Feature Include in the "Added" section of the changelog mod: circuit Related to the core of the `QuantumCircuit` class or the circuit library labels Oct 2, 2023
@jakelishman jakelishman added this to the 0.45.0 milestone Oct 2, 2023
@jakelishman jakelishman requested a review from a team as a code owner October 2, 2023 14:26
@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 Oct 3, 2023

Pull Request Test Coverage Report for Build 6989295039

  • 85 of 91 (93.41%) changed or added relevant lines in 8 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 87.083%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit/circuit/classical/expr/expr.py 11 12 91.67%
qiskit/circuit/classical/types/ordering.py 18 19 94.74%
qiskit/circuit/classical/expr/constructors.py 5 7 71.43%
qiskit/circuit/store.py 33 35 94.29%
Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 1 91.92%
Totals Coverage Status
Change from base Build 6985085373: 0.02%
Covered Lines: 60864
Relevant Lines: 69892

💛 - Coveralls

This does not yet add the implementation of `QuantumCircuit.store`,
which will come later as part of expanding the full API of
`QuantumCircuit` to be able to support these runtime variables.

The `is_lvalue` helper is added generally to the `classical.expr` module
because it's generally useful, while `types.cast_kind` is moved from
being a private method in `expr` to a public-API function so `Store` can
use it.  These now come with associated unit tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: New Feature Include in the "Added" section of the changelog mod: circuit Related to the core of the `QuantumCircuit` class or the circuit library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Store instruction class
3 participants