Results 20 issues of Dax Fohl

**Description of the issue** Density matrix is mentioned in docstrings for `_BufferedStateVector`, `SimulationState._perform_measurement`, and `Simulator`. Should be changed to "state vector" and `QuantumStateRepresentation` respectively.

good first issue
kind/bug-report
kind/docs
triage/accepted
area/docstrings

**Description of the issue** Newer type checkers, such as pyright, pytype, pyre are faster, able to infer types implicitly, and catch more errors. Pyright in particular is also incremental, so...

kind/health
triage/needs-feasibility
triage/needs-more-evidence

## Is your feature request related to a use case or problem? Please explain I noticed the issue when reviewing the qelib1.inc PR and while working on controlled gate decomposition....

good part-time project
kind/feature-request
triage/accepted
area/gates
area/paulis
good for learning

In `decompose_protocol.py`, `"_decompose_with_context_"` is never called without a valid `DecompositionContext`. However, many of the type annotations, both in `decompose_protocol.py` and in `_decompose_with_context_` implementations across the project, specify `context: DecompositionContext |...

good first issue
no QC knowledge needed
triage/accepted

Fixes #5688. Fixes #5689. A quick image search for circuit diagrams shows that the convention seems to be arrows for measurement, which I represent here in diagrams with `V`. I...

Ready for Re-Review
area/visualization
size: M
priority/after-1.5

This PR improves the resilience of the cached member fields in Circuit. Most importantly, `_placement_cache`, which is used to speed up `Circuit.append()` from O(N) to O(1), is made to be...

size: L

This adds `measurement_keys` and `control_keys` properties to `Circuit`, `Gate`, `Operation`, and `Moment`, and any subclasses that require them, as an alternative to the corresponding protocols. These properties are cached for...

size: L

## Describe the issue There's an inconsistency in how Pauli ops handle exponentiation and multiplication with respect to equality. While equality holds when the exponent is odd, it doesn't when...

kind/bug-report
triage/accepted
area/paulis
kind/design-issue

## Is your design idea/issue related to a use case or problem? Please explain Mathematical protocols like `unitary` and `channel`, and relational protocols like `commutes` and `act_on` all provide useful...

good part-time project
triage/needs-more-evidence
area/protocols
kind/design-issue

## Is your feature request related to a use case or problem? Please explain #6882 created a cache that sped up circuit construction if only "append" (or equivalent "insert" at...

good first issue
kind/feature-request
triage/accepted
area/circuits
area/performance