Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Qiskit/qiskit-terra into docs/Quant…
Browse files Browse the repository at this point in the history
…umCircuit_measure
  • Loading branch information
1ucian0 committed Mar 10, 2023
2 parents 7af99a0 + 5ce80ab commit 673e649
Show file tree
Hide file tree
Showing 97 changed files with 1,430 additions and 1,011 deletions.
3 changes: 1 addition & 2 deletions .azure/docs-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:

variables:
PIP_CACHE_DIR: $(Pipeline.Workspace)/.pip
RUST_DEBUG: 1

steps:
- checkout: self
Expand All @@ -29,8 +30,6 @@ jobs:
- bash: |
tox -edocs
displayName: 'Run Docs build'
env:
SETUPTOOLS_ENABLE_FEATURES: "legacy-editable"
- task: ArchiveFiles@2
inputs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
stestr run
# We set the --source-dir to '.' because we want all paths to appear relative to the repo
# root (we need to combine them with the Python ones), but we only care about `grcov`
# keeping the `src/*` files; we don't care about coverage in dependencies.
grcov . --binary-path target/debug/ --source-dir . --output-type lcov --output-path rust.info --llvm --branch --parallel --keep-only 'src/*'
# keeping the `crates/*` files; we don't care about coverage in dependencies.
grcov . --binary-path target/debug/ --source-dir . --output-type lcov --output-path rust.info --llvm --branch --parallel --keep-only 'crates/*'
env:
QISKIT_TEST_CAPTURE_STREAMS: 1
QISKIT_PARALLEL: FALSE
Expand Down
92 changes: 46 additions & 46 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 9 additions & 37 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,42 +1,14 @@
[package]
name = "qiskit-terra"
[workspace]
members = ["crates/*"]

# This has no meaning until we're on Rust 1.64, but once we get there, the subpackages will be able
# to inherit from this rather than needing to duplicate its content themselves. Until we get there,
# keep this in sync with each subpackage `Cargo.toml`'s `package` key.
[workspace.package]
version = "0.24.0"
edition = "2021"
# Keep in sync with README.md and rust-toolchain.toml.
rust-version = "1.61"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
name = "qiskit_accelerate"
crate-type = ["cdylib"]

[dependencies]
rayon = "1.6"
numpy = "0.18.0"
rand = "0.8"
rand_pcg = "0.3"
rand_distr = "0.4.3"
ahash = "0.8.3"
num-complex = "0.4"
num-bigint = "0.4"
rustworkx-core = "0.12"

[dependencies.pyo3]
version = "0.18.1"
features = ["extension-module", "hashbrown", "num-complex", "num-bigint", "indexmap"]

[dependencies.ndarray]
version = "^0.15.6"
features = ["rayon"]

[dependencies.hashbrown]
version = "0.13.2"
features = ["rayon"]

[dependencies.indexmap]
version = "1.9"
features = ["rayon"]
rust-version = "1.61" # Keep in sync with README.md and rust-toolchain.toml.
license = "Apache-2.0"

[profile.release]
lto = 'fat'
Expand Down
7 changes: 1 addition & 6 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
include LICENSE.txt
include requirements.txt
include qiskit/qasm/libs/*.inc
include qiskit/schemas/*.json
include qiskit/schemas/examples/*.json
include qiskit/VERSION.txt
recursive-include qiskit *.pyx
recursive-include qiskit *.pxd
include qiskit/visualization/circuit/styles/*.json
recursive-include qiskit/providers/fake_provider/backends *.json

# Include the tests files.
recursive-include test *.py
include test/python/pickles/*.pickle
include test/python/qasm/*.qasm
include test/python/visualization/references/*.png
include test/python/notebooks/*.ipynb

include Cargo.toml
include Cargo.lock
recursive-include src *
recursive-include crates *
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ If you'd like to contribute to Qiskit Terra, please take a look at our
[contribution guidelines](CONTRIBUTING.md). This project adheres to Qiskit's [code of conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.

We use [GitHub issues](https://github.com/Qiskit/qiskit-terra/issues) for tracking requests and bugs. Please
[join the Qiskit Slack community](https://ibm.co/joinqiskitslack)
[join the Qiskit Slack community](https://qisk.it/join-slack)
and use our [Qiskit Slack channel](https://qiskit.slack.com) for discussion and simple questions.
For questions that are more suited for a forum we use the `qiskit` tag in the [Stack Exchange](https://quantumcomputing.stackexchange.com/questions/tagged/qiskit).

Expand Down
41 changes: 41 additions & 0 deletions crates/accelerate/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[package]
name = "qiskit_accelerate"
# The following options can be inherited with (e.g.) `version.workspace = true` once we hit Rust
# 1.64. Until then, keep in sync with the root `Cargo.toml`.
version = "0.24.0"
edition = "2021"
rust-version = "1.61"
license = "Apache-2.0"

[lib]
name = "qiskit_accelerate"
crate-type = ["cdylib"]

[dependencies]
rayon = "1.7"
numpy = "0.18.0"
rand = "0.8"
rand_pcg = "0.3"
rand_distr = "0.4.3"
ahash = "0.8.3"
num-complex = "0.4"
num-bigint = "0.4"
rustworkx-core = "0.12"

# The base version of PyO3 and setting a minimum feature set (e.g. probably just 'extension-module')
# can be done in the workspace and inherited once we hit Rust 1.64.
[dependencies.pyo3]
version = "0.18.1"
features = ["extension-module", "hashbrown", "indexmap", "num-complex", "num-bigint"]

[dependencies.ndarray]
version = "^0.15.6"
features = ["rayon"]

[dependencies.hashbrown]
version = "0.13.2"
features = ["rayon"]

[dependencies.indexmap]
version = "1.9"
features = ["rayon"]
Loading

0 comments on commit 673e649

Please sign in to comment.