-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #233 from BoxiLi/qutip-qip-0.3.X
Prepare the qutip-qip-0.3.1 release
- Loading branch information
Showing
51 changed files
with
362 additions
and
146 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ jobs: | |
- uses: psf/black@stable | ||
with: | ||
options: "--check --diff" | ||
src: "./src" | ||
src: "./src" | ||
version: "~= 24.0" |
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
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 |
---|---|---|
|
@@ -12,11 +12,11 @@ jobs: | |
strategy: | ||
matrix: | ||
include: | ||
- case-name: [email protected].0a1 | ||
- case-name: [email protected].0 | ||
os: ubuntu-latest | ||
qutip-version: '==5.0.0a1' | ||
qutip-version: '==5.0.0' | ||
pyqir-version: '' | ||
python-version: '3.10' | ||
python-version: '3.11' | ||
- case-name: [email protected] | ||
os: ubuntu-latest | ||
qutip-version: '@qutip-4.7.X' | ||
|
@@ -26,37 +26,31 @@ jobs: | |
os: ubuntu-latest | ||
qutip-version: '@master' | ||
pyqir-version: '' | ||
python-version: '3.11' | ||
- case-name: [email protected] | ||
os: windows-latest | ||
qutip-version: '==4.6.*' | ||
qiskit-version: '' | ||
pyqir-version: '' | ||
python-version: '3.8' | ||
python-version: '3.12' | ||
- case-name: [email protected] | ||
os: macOS-latest | ||
qutip-version: '==4.7.*' | ||
qiskit-version: '' | ||
pyqir-version: '' | ||
python-version: '3.9' | ||
python-version: '3.11' | ||
- case-name: qiskit+qir | ||
os: windows-latest | ||
qutip-version: '' | ||
qiskit-version: '==0.36.*' | ||
qiskit-version: '==0.46.*' | ||
pyqir-version: '==0.6.2' | ||
python-version: '3.8' | ||
python-version: '3.9' | ||
- case-name: qiskit+qir | ||
os: macOS-latest | ||
qutip-version: '' | ||
qiskit-version: '==0.36.*' | ||
qiskit-version: '==0.46.*' | ||
pyqir-version: '==0.6.2' | ||
python-version: '3.9' | ||
- case-name: qiskit+qir | ||
os: ubuntu-latest | ||
qutip-version: '' | ||
qiskit-version: '==0.36.*' | ||
qiskit-version: '==0.46.*' | ||
pyqir-version: '==0.6.2' | ||
python-version: '3.7' | ||
python-version: '3.9' | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -74,15 +68,9 @@ jobs: | |
run: | | ||
python -m pip install 'git+https://github.com/qutip/qutip.git${{ matrix.qutip-version }}' | ||
# For qutip-v5 qutip.control is replaced by qutip-qtrl | ||
- name: Install qutip-qtrl from PyPI | ||
if: ${{ matrix.qutip-version == '@master'}} | ||
run: | | ||
python -m pip install 'git+https://github.com/qutip/qutip-qtrl.git' | ||
- name: Install Qiskit from PyPI | ||
if: ${{ matrix.qiskit-version != '' }} | ||
run: python -m pip install 'qiskit${{ matrix.qiskit-version }}' | ||
run: python -m pip install 'qiskit${{ matrix.qiskit-version }}' 'qiskit-aer==0.14.0.1' | ||
|
||
- name: Install PyQIR from PyPI | ||
if: ${{ matrix.pyqir-version != '' }} | ||
|
@@ -111,11 +99,12 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
python-version: 3.9 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -mpip install -r doc/requirements.txt | ||
pip install qutip==4.7.3 | ||
pip install . | ||
- name: Test code snippets in the documentation | ||
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
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 +1 @@ | ||
0.3.0 | ||
0.3.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
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
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
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
// Name of Experiment: W-state v1 | ||
|
||
OPENQASM 2.0; | ||
include "qelib1.inc"; | ||
|
||
|
||
qreg q[3]; | ||
|
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
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
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
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
"""Unitary decomposition. (experimental)""" | ||
|
||
from .decompose_single_qubit_gate import * |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Noise of quantum hardware.""" | ||
|
||
import numbers | ||
import warnings | ||
from collections.abc import Iterable | ||
|
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,7 @@ | ||
""" | ||
Operations on quantum circuits. | ||
""" | ||
|
||
from .gates import * | ||
from .gateclass import * | ||
from .measurement import * |
Oops, something went wrong.