Skip to content

Commit

Permalink
Restart kernel if qrack needs to be install
Browse files Browse the repository at this point in the history
  • Loading branch information
bdg221 committed Jul 25, 2024
1 parent badf257 commit b758d1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/source/examples/cdr_qrack.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ While the Users Guide and the [Cirq: 1D Ising Simultation](https://mitiq.readthe
To start, relevant modules and libraries are imported.

```{code-cell} ipython3
import os
try:
from pyqrack import QrackSimulator, QrackCircuit
except ImportError:
%pip install pyqrack --quiet
os._exit(00)
```

```{note}
Expand All @@ -37,7 +40,6 @@ In the code below the environmental variable, `QRACK_MAX_CPU_QB`, is set to `-1`
```{code-cell} ipython3
import numpy as np
import collections
import os
import warnings
warnings.simplefilter("ignore", np.ComplexWarning)
Expand Down

0 comments on commit b758d1a

Please sign in to comment.