Skip to content

Commit

Permalink
docs fixtures for qiskit 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dakk committed Mar 19, 2024
1 parent f8c301b commit 020bade
Show file tree
Hide file tree
Showing 12 changed files with 68 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: |
pip install sphinx sphinx_rtd_theme sphinx_rtd_dark_mode myst_nb
pip install pennylane==0.33.1 pennylane-lightning==0.33.1
pip install sympy qiskit[visualization] matplotlib pylatexenc cirq pyqubo
pip install sympy qiskit[visualization] qiskit-aer matplotlib pylatexenc cirq pyqubo
python setup.py install
- name: Sphinx build
run: |
Expand Down
9 changes: 5 additions & 4 deletions docs/source/example_deutsch_jozsa.ipynb

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions docs/source/example_grover.ipynb

Large diffs are not rendered by default.

19 changes: 10 additions & 9 deletions docs/source/example_grover_factors.ipynb

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions docs/source/example_grover_hash.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,13 @@
}
],
"source": [
"from qiskit import Aer, QuantumCircuit, transpile\n",
"from qiskit import QuantumCircuit, transpile\n",
"from qiskit.visualization import plot_histogram\n",
"from qiskit_aer import AerSimulator\n",
"\n",
"qc = q_algo.export(\"qiskit\")\n",
"qc.measure_all()\n",
"simulator = Aer.get_backend(\"aer_simulator\")\n",
"simulator = AerSimulator()\n",
"circ = transpile(qc, simulator)\n",
"result = simulator.run(circ).result()\n",
"counts = result.get_counts(circ)\n",
Expand Down
7 changes: 4 additions & 3 deletions docs/source/example_grover_subset.ipynb

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions docs/source/example_grover_sudoku.ipynb

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions docs/source/example_simon.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/source/example_unitary_of_f.ipynb

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions docs/source/how_it_works.ipynb

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions docs/source/quickstart.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from typing import get_args

from qiskit import QuantumCircuit, transpile
from qiskit_aer import Aer, AerSimulator
from qiskit_aer import AerSimulator
from sympy.logic.boolalg import gateinputcount

from qlasskit import Qtype, const_to_qtype
Expand All @@ -44,9 +44,9 @@

qsk_simulator = Qrack.get_backend("qasm_simulator")
except:
qsk_simulator = Aer.get_backend("aer_simulator")
qsk_simulator = AerSimulator()

qsk_simulator = Aer.get_backend("aer_simulator")
qsk_simulator = AerSimulator()

statistics = {"tests": 0, "qubits": 0, "gates": 0}

Expand Down

0 comments on commit 020bade

Please sign in to comment.