Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into target-aware-vf2-layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Mar 30, 2022
2 parents 81a2897 + 9d671e5 commit c8766ad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 11 additions & 0 deletions releasenotes/notes/csp-layout-extra-b62a5e53f136534a.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
upgrade:
- |
A new extra ``csp-layout-pass`` has been added to the install target for
``pip install qiskit-terra``, and is also included in the ``all`` extra.
This has no effect in Qiskit Terra 0.20, but starting from Qiskit Terra 0.21,
the dependencies needed only for the :class:`.CSPLayout` transpiler pass will
be downgraded from requirements to optionals, and installed by this extra.
You can prepare a package that depends on this pass by setting its
requirements (or ``pip install`` command) to target
``qiskit-terra[csp-layout-pass]``.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
)


csplayout_requirements = [
"python-constraint>=1.4",
]
visualization_extras = [
"matplotlib>=3.3",
"ipywidgets>=7.3.0",
Expand Down Expand Up @@ -82,10 +85,11 @@
"visualization": visualization_extras,
"bip-mapper": bip_requirements,
"crosstalk-pass": z3_requirements,
"csp-layout-pass": csplayout_requirements,
# Note: 'all' does not include 'bip-mapper' because cplex is too fiddly and too little
# supported on various Python versions and OSes compared to Terra. You have to ask for it
# explicitly.
"all": visualization_extras + z3_requirements,
"all": visualization_extras + z3_requirements + csplayout_requirements,
},
project_urls={
"Bug Tracker": "https://github.com/Qiskit/qiskit-terra/issues",
Expand Down

0 comments on commit c8766ad

Please sign in to comment.