-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'ibm/main' into dag_dep_apply
- Loading branch information
Showing
742 changed files
with
24,551 additions
and
8,133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Miri | ||
on: | ||
push: | ||
pull_request: | ||
concurrency: | ||
group: ${{ github.repository }}-${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }} | ||
# Only cancel in PR mode. In push mode, don't cancel so we don't see spurious test "failures", | ||
# and we get coverage reports on Coveralls for every push. | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
jobs: | ||
miri: | ||
if: github.repository_owner == 'Qiskit' | ||
name: Miri | ||
runs-on: ubuntu-latest | ||
env: | ||
RUSTUP_TOOLCHAIN: nightly-2024-05-24 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: nightly-2024-05-24 | ||
components: miri | ||
|
||
- name: Prepare Miri | ||
run: | | ||
set -e | ||
# Some of our dependencies aren't Miri-safe with their current release versions. These | ||
# need overriding with known-good versions to run against until the Miri-safe versions are | ||
# released and updated in our Cargo.lock. | ||
cat >>Cargo.toml <<EOF | ||
[patch.crates-io] | ||
crossbeam-epoch = { git = "https://github.com/crossbeam-rs/crossbeam", rev = "9e859610" } | ||
EOF | ||
cargo miri setup | ||
- name: Run Miri | ||
run: cargo miri test | ||
env: | ||
# - `tree-borrows` is required for crossbeam components. | ||
# - `symbolic-alignment-check` is extra checking. | ||
# - `strict-provenance` is extra checking. | ||
MIRIFLAGS: '-Zmiri-tree-borrows -Zmiri-symbolic-alignment-check -Zmiri-strict-provenance' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
name: Tests | ||
on: | ||
push: | ||
branches: [ main, 'stable/*' ] | ||
pull_request: | ||
branches: [ main, 'stable/*' ] | ||
merge_group: | ||
|
||
concurrency: | ||
group: ${{ github.repository }}-${{ github.ref }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
tests: | ||
if: github.repository_owner == 'Qiskit' | ||
name: macOS-arm64-tests-Python-${{ matrix.python-version }} | ||
runs-on: macOS-14 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# Normally we test min and max version but we can't run python 3.8 or | ||
# 3.9 on arm64 until actions/setup-python#808 is resolved | ||
python-version: ["3.10", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust toolchain | ||
uses: dtolnay/[email protected] | ||
if: matrix.python-version == '3.10' | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: arm64 | ||
- name: 'Install dependencies' | ||
run: | | ||
python -m pip install -U -r requirements.txt -c constraints.txt | ||
python -m pip install -U -r requirements-dev.txt -c constraints.txt | ||
python -m pip install -c constraints.txt -e . | ||
if: matrix.python-version == '3.10' | ||
env: | ||
QISKIT_NO_CACHE_GATES: 1 | ||
- name: 'Install dependencies' | ||
run: | | ||
python -m pip install -U -r requirements.txt -c constraints.txt | ||
python -m pip install -U -r requirements-dev.txt -c constraints.txt | ||
python -m pip install -c constraints.txt -e . | ||
if: matrix.python-version == '3.12' | ||
- name: 'Install optionals' | ||
run: | | ||
python -m pip install -r requirements-optional.txt -c constraints.txt | ||
python tools/report_numpy_state.py | ||
if: matrix.python-version == '3.10' | ||
- name: 'Run tests' | ||
run: stestr run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ pull_request_rules: | |
actions: | ||
backport: | ||
branches: | ||
- stable/1.0 | ||
- stable/1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
@misc{Qiskit, | ||
author = {{Qiskit contributors}}, | ||
title = {Qiskit: An Open-source Framework for Quantum Computing}, | ||
year = {2023}, | ||
doi = {10.5281/zenodo.2573505} | ||
@misc{qiskit2024, | ||
title={Quantum computing with {Q}iskit}, | ||
author={Javadi-Abhari, Ali and Treinish, Matthew and Krsulich, Kevin and Wood, Christopher J. and Lishman, Jake and Gacon, Julien and Martiel, Simon and Nation, Paul D. and Bishop, Lev S. and Cross, Andrew W. and Johnson, Blake R. and Gambetta, Jay M.}, | ||
year={2024}, | ||
doi={10.48550/arXiv.2405.08810}, | ||
eprint={2405.08810}, | ||
archivePrefix={arXiv}, | ||
primaryClass={quant-ph} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.