Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
atlytle committed Jan 7, 2024
1 parent 6437a4f commit 0170e13
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ Note that **dense_ev** specifies `qiskit < 0.43.0`, as the `Opflow` and
`QuantumInstance` packages have been deprecated as of `Qiskit 0.43.0`.
We plan to update the code to function with the new `primitives` as this
migration continues and more documentation becomes available.
**Update** 2024-01-07: Support for dense Pauli grouping
in the Aer `Estimator` primitive merged to `main` branch.
See usage example below.

## Usage
Functionality for naive and QWC groupings is provided in Qiskit
Expand Down Expand Up @@ -63,3 +66,25 @@ result = vqe.compute_minimum_eigenvalue(operator=H)

```

### Estimator support
The Aer implementation of `Estimator` is extended to incorporate
dense Pauli grouping, and can be invoked using the keyword
argument `abelian_grouping="DENSE"`. See `test_estimator.py`
for a more complete listing comparing no and abelian grouping.
```python
from dense_ev.estimator_from_aer import Estimator

...

# Dense result.
nshots = 200000
approx = False
grouping = "DENSE"
run_options = {"shots": nshots, "seed": seed}
estimator = Estimator(
run_options=run_options, abelian_grouping=grouping, approximation=approx)
result_dense = estimator.run(state, H, shots=nshots).result().values

...

```

0 comments on commit 0170e13

Please sign in to comment.