Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
578 commits
Select commit Hold shift + click to select a range
c00dd7b
Push minimal supported python version
shumpohl Jun 20, 2024
21cd24b
Allow gmpy2 release candidate installation for python 3.12
shumpohl Jun 20, 2024
e502116
Do not used removed assertEquals alias
shumpohl Jun 20, 2024
bce97bc
Remove dead custom frozendict implementations
shumpohl Jun 20, 2024
414d913
Merge pull request #851 from qutech/dev/python_3_10
Jun 20, 2024
c73d943
Merge pull request #852 from qutech/doc/polish_2024_06
Jun 20, 2024
3ad03a6
Merge pull request #854 from qutech/issues/853_frozendict
Jun 20, 2024
ed91fb1
fix jump back in linspace
Nomos11 Jun 20, 2024
06da4f7
Add numpy to test matrix
shumpohl Jun 21, 2024
ed23e61
Execute tests on workflow changes
shumpohl Jun 21, 2024
83a6421
Merge pull request #859 from qutech/issues/856_numpy_test_matrix
Jun 21, 2024
d70643b
Add linspace VM
shumpohl Jun 21, 2024
025ba8a
Add test that fails due to known bug
shumpohl Jun 21, 2024
10f13b1
Merge branch 'dev/linspace_jumpback_fix' into issues/860_linspace_vm
shumpohl Jun 21, 2024
6aa2e03
Fix VM loop count handling
shumpohl Jun 21, 2024
e598e8c
Add working VM tests
shumpohl Jun 21, 2024
e2801ff
Add singlet reload test
shumpohl Jun 21, 2024
c6b0ff4
Merge pull request #861 from qutech/issues/860_linspace_vm
Jun 21, 2024
62c61f5
Improve arithmetic atomic pt warning level
shumpohl Jul 1, 2024
418e0cd
Add clean notebook command
shumpohl Jul 1, 2024
3e4cee6
Add failing test
shumpohl Jul 1, 2024
2fd223e
Add time_reversed to LoopBuilder
shumpohl Jul 1, 2024
777acaa
Merge pull request #867 from qutech/issues/865_time_reversal_loop
Jul 1, 2024
4e19373
Merge branch 'master' into doc/fix_formatting
shumpohl Jul 1, 2024
54a7921
Clean execution state of nearly all notebooks
shumpohl Jul 1, 2024
0ecb08b
Update documentation and make all hardware dependent notebooks start …
shumpohl Jul 1, 2024
220c215
Merge pull request #868 from qutech/doc/fix_formatting
Jul 1, 2024
fb33068
'return' in SimpleExpression.__rsub__
Nomos11 Jul 10, 2024
27a71e7
Add default features to default hatch test environment
shumpohl Jan 3, 2025
a1420c0
Configure default environment
shumpohl Jan 3, 2025
115486c
Add printing for custom sympy len hack
shumpohl Jan 3, 2025
d1239dd
Use stable numpy nan
shumpohl Jan 3, 2025
26969ac
Fix sympy to TimeType conversion
shumpohl Jan 3, 2025
f8b7c1c
Add try to numeric to sympy expression
shumpohl Jan 3, 2025
ded90d3
Implement the default numeric value equality and hashing behavior for…
shumpohl Jan 3, 2025
43810b0
Use a working nan test case without zero division
shumpohl Jan 3, 2025
559ea3f
Update github test upload action
shumpohl Jan 3, 2025
d348b13
Fix dynamic type annotation
shumpohl Jan 3, 2025
90a3119
Use proper artifact name
shumpohl Jan 3, 2025
9c76362
Fix version typo
shumpohl Jan 3, 2025
8107e93
Try artifact rename
shumpohl Jan 3, 2025
860b331
Try learning bash
shumpohl Jan 3, 2025
6243493
Merge pull request #878 from qutech/fix/hatch_test
Jan 3, 2025
8dd83dd
Add untested linspace implementation
shumpohl Jul 1, 2024
8282354
Failing test for linspace implementation
shumpohl Jul 1, 2024
c3cc1ff
Add failing test for complicated numeric expression
shumpohl Jan 3, 2025
f912ec5
Add missing evaluation step for numeric representation
shumpohl Jan 3, 2025
e51c05b
Insert Command comparison check
shumpohl Jan 3, 2025
3062b47
Add reversed waveform repr for better debugging experience
shumpohl Jan 3, 2025
9ad355b
Add docstring and fix bug in reverse step calculation
shumpohl Jan 3, 2025
d7d8b33
Make linspace VM use a fixed resolution
shumpohl Jan 3, 2025
21469b7
Merge pull request #866 from qutech/issues/865_time_reversal_program_…
Nomos11 Jan 4, 2025
afd82f4
complicated test for linspacebuilder
Nomos11 Jan 15, 2025
fa03bef
Make test collection a TestCase
shumpohl Jan 15, 2025
1cdee60
Fix assert and include more test data
shumpohl Jan 15, 2025
b187e46
Cleanup test
shumpohl Jan 15, 2025
c5ddccd
Add proper docstring to function with wrong assert
shumpohl Jan 15, 2025
670b89f
Merge pull request #881 from qutech/issues/857_evaluate_bug
Nomos11 Jan 15, 2025
1f2c09c
Remove qctoolkit alias
shumpohl Jun 20, 2024
5732d2f
Remove qctoolkit test trigger
shumpohl Jun 21, 2024
084c207
Adjust error on disabled qctoolkit import
shumpohl Jun 21, 2024
62a1be4
Remove qctoolkit serialization tests
shumpohl Jan 23, 2025
39bc992
Remove MATLAB code
shumpohl Jan 23, 2025
fec7c4c
Change newspiece and add short section to README
shumpohl Jan 23, 2025
aac77c2
Remove MATLAB mentions
shumpohl Jan 23, 2025
8f175b1
Fox outdated README facts
shumpohl Jan 23, 2025
45f811d
Removed unused linter settings
shumpohl Jan 23, 2025
b099070
Remove example that has a proper notebook
shumpohl Jan 23, 2025
885aac1
Implement automatic qctoolkit renaming with legacy deserialization
shumpohl Jan 23, 2025
5684681
first failing test for pre_dep!=post_dep
Nomos11 Jun 20, 2024
28b8228
Correct type annotation in LinspaceVM
shumpohl Jun 21, 2024
bd98812
Cleanup test. Originial commands and program work in simulator
shumpohl Jun 21, 2024
49c099e
Remove dead code and comments
shumpohl Jan 3, 2025
110ca5f
Remove noop's from expected VM output
shumpohl Jan 23, 2025
694dbbd
Snarky comment
shumpohl Jan 23, 2025
fe5d554
Merge pull request #884 from qutech/fix/2025_01_cleanup
Nomos11 Jan 23, 2025
b2dbe43
Merge pull request #855 from qutech/issues/841_qctoolkit
Nomos11 Jan 23, 2025
be13938
Streamline program concept documentation
shumpohl Jan 24, 2025
e7a9387
Fix errors in concepts
shumpohl Jan 24, 2025
2e4f4b0
Improve ProgramBuilder docstrings
shumpohl Jan 24, 2025
96f1c14
Include another explicit pandoc mention in README
shumpohl Jan 24, 2025
738c882
Greatly improve program documentation
shumpohl Jan 25, 2025
d2507df
Improve type annotations and documentation in linspace
shumpohl Jan 25, 2025
9e892a3
Fix doc compilation errors
shumpohl Jan 25, 2025
5c1f8ab
Merge pull request #885 from qutech/issue/883_program_builder_doc
shumpohl Jan 25, 2025
ebd53e4
Add section about PT convenience functionality
shumpohl Jan 25, 2025
c395274
Merge pull request #886 from qutech/issues/804_pt_convenience
shumpohl Jan 25, 2025
8b5afe0
Link to sympy documentation
shumpohl Jan 27, 2025
e40568b
Shorten item names
shumpohl Jan 27, 2025
91262bb
Include full module name. Newer sphinx versions require this for some…
shumpohl Jan 27, 2025
66bf17a
Fix reference
shumpohl Jan 27, 2025
72e358a
Merge pull request #887 from qutech/fix/2025_01_doc_build
shumpohl Jan 27, 2025
233662f
Add to_single_waveform property to PulseTemplate
shumpohl Feb 14, 2025
724c53e
Add to to_single_waveform to the most important non-atomic pulse temp…
shumpohl Feb 14, 2025
fa0c5e1
Add failing test for arbitrary waveform sample
shumpohl Feb 17, 2025
7e4bf5a
Fix test values
shumpohl Feb 17, 2025
4ff7c6c
Fix LinspaceVM
shumpohl Feb 17, 2025
9adab37
Define play VM behavior in terms of Set and Wait with sample_resoluti…
shumpohl Feb 17, 2025
810f9fe
Update actions and python version in pythonpublish.yml
shumpohl Feb 17, 2025
3a56d61
Merge pull request #892 from qutech/issues/890_linspace_vm
Nomos11 Feb 17, 2025
e9674df
Merge pull request #893 from qutech/issues/891_python_publish
shumpohl Feb 18, 2025
65c3d9c
Add MappingPT to single waveform kwarg
shumpohl Feb 18, 2025
6f5bb7e
Add tests for to_single_waveform kwarg
shumpohl Feb 18, 2025
3fea47d
Add newspiece
shumpohl Feb 18, 2025
15d6707
Merge pull request #889 from qutech/issues/578_to_single_waveform
Nomos11 Feb 18, 2025
51abdaf
Add failing test
shumpohl Jun 25, 2025
ddeab60
Add expected value for test
shumpohl Jun 25, 2025
9ddf708
Use SciPyPrinter if available
shumpohl Jun 25, 2025
5ecab6f
Skip compiled evaluation for Integrals
shumpohl Jun 25, 2025
1a47b85
Expect failure of integral evaluation test if scipy is not installed
shumpohl Jun 25, 2025
b27b33e
Merge pull request #896 from qutech/issues/895_sympy_integral
Nomos11 Jun 25, 2025
32f1cab
Update publishing workflow and add test upload job
shumpohl Jul 1, 2025
b31b36e
Merge pull request #897 from qutech/fix/package_publish
shumpohl Jul 1, 2025
8dc96c6
Remove comparable base class
shumpohl Jul 1, 2025
c4385ce
Add newspiece for comparable removal
shumpohl Jul 1, 2025
84f63f1
Merge pull request #862 from qutech/issues/857_no_linspace_bugs
shumpohl Jul 1, 2025
4cc0250
Warn if volatility is not respected in Linspace builder
shumpohl Jul 1, 2025
1139403
Merge pull request #899 from qutech/issues/888_remove_comparable
shumpohl Jul 1, 2025
e2a144b
Merge pull request #900 from qutech/issues/880_volatile_in_program_bu…
shumpohl Jul 1, 2025
0d2c860
Setup newer python for upload
shumpohl Jul 1, 2025
b70c07c
Change to LGPL
shumpohl Jul 1, 2025
79e3fb4
Merge pull request #898 from qutech/dev/license
Nomos11 Jul 1, 2025
7a927dd
First MetaData class attempt
shumpohl Jul 1, 2025
f5b11b1
Move Program protocol to dedicated module
shumpohl Jul 3, 2025
1748578
Move and rename SimpleExpression to DynamicLinearValue
shumpohl Jul 3, 2025
61690a3
Add newspiece
shumpohl Jul 3, 2025
8b07f94
Increase code quality and fix tests
shumpohl Jul 3, 2025
873d67d
Add more backwards compatibility imports
shumpohl Jul 3, 2025
31981fa
Replace to_single_waveform newspiece with metadata newspice
shumpohl Jul 3, 2025
0d030f2
Add warning if non-comparison of metadata matters
shumpohl Jul 3, 2025
61dfafc
Merge pull request #908 from qutech/issues/907_program_clean
shumpohl Jul 3, 2025
bbc6482
Add documentation for metadata feature
shumpohl Jul 3, 2025
a506e24
Remove misleading doc
shumpohl Jul 3, 2025
0e040fa
Add dedicated metadata tests and fix error
shumpohl Jul 3, 2025
66d4492
Avoid double serialization data creation
shumpohl Jul 3, 2025
45bdfdf
Merge pull request #905 from qutech/feature/pt_meta_data
shumpohl Jul 3, 2025
c38f187
Add more sophisticated padding support and helper functions for that
shumpohl Jul 1, 2025
e65b74c
Create atomic pts by default with subtemplate padding
shumpohl Jul 3, 2025
134b54a
Add new utility methods to overview documentation
shumpohl Jul 3, 2025
f2fc14c
Add newspiece
shumpohl Jul 3, 2025
6beed6e
Add identity_map and add direct argument documentation
shumpohl Jul 3, 2025
9c59b6d
Misc documentation improvements
shumpohl Jul 3, 2025
d2e8337
Set sphinx version
shumpohl Jul 3, 2025
439b37a
Add failing test stubs
shumpohl Jul 3, 2025
2dcd314
Include identifier in PT repr, fox errors and implement first test
shumpohl Jul 3, 2025
cc2e2f7
Introduce and document avoidance of new template creation if possible
shumpohl Jul 4, 2025
d67a418
Make tests test for no recursion in 'self' mode
shumpohl Jul 4, 2025
c10f2f1
Deprecate pad_to pt_kwargs and replace it with spt_kwargs
shumpohl Jul 4, 2025
13a6ae0
Add deprecation newspiece
shumpohl Jul 4, 2025
8598029
Merge pull request #902 from qutech/feature/pad_selected_subtemplates
shumpohl Jul 4, 2025
a6d914b
Merge pull request #909 from qutech/doc/misc
shumpohl Jul 4, 2025
d905a50
Remove AtomicPulseTemplate.atomicity
shumpohl Jul 7, 2025
3539f81
Add newspiece
shumpohl Jul 7, 2025
ba6dacd
Fix bug in SequencePT.concatenate and add test for it
shumpohl Jul 7, 2025
2378e0b
Concatenate class and init docstring. Reverts parts of 9c59b6d9fd86a9…
shumpohl Jul 7, 2025
f57ea97
Rewrite SequencePT docstring
shumpohl Jul 7, 2025
d85d32b
Clarify measurement handling when sequence is empty
shumpohl Jul 7, 2025
04e0e1d
Do not include extra class __init__
shumpohl Jul 7, 2025
2a2b760
Fix confusing naming
shumpohl Jul 7, 2025
002b0b4
Fix links
shumpohl Jul 7, 2025
039edd3
Fix warning for attribute documentation duplication
shumpohl Jul 7, 2025
12ef53a
Some single sentence module level docstrings for the program subpackage
shumpohl Jul 7, 2025
1a331db
Do not drop metadata when using with_repetition on RepetitionPT and a…
shumpohl Jul 7, 2025
072bef3
Overhaul RepetitionPT docstring
shumpohl Jul 7, 2025
5bc60bc
Improve ForLoopPT documentation
shumpohl Jul 7, 2025
41cffc1
Improve and somewhat modernize MappingPT documentation
shumpohl Jul 7, 2025
5e94ece
Document some more public functions
shumpohl Jul 7, 2025
01b00bf
Merge pull request #911 from qutech/issues/904_atomicity
shumpohl Jul 7, 2025
da644a3
Remove backwards compatibility which was deprecated since 0.1
shumpohl Jul 7, 2025
beef169
Remove test for old import path
shumpohl Jul 7, 2025
6bfe3d5
Merge pull request #912 from qutech/issues/894_pt_doc_strings
shumpohl Jul 7, 2025
a5d07cb
Hack in MappingPT location
shumpohl Jul 7, 2025
db80d61
Merge pull request #913 from qutech/issues/904_parameter_mapping
shumpohl Jul 7, 2025
7e4dd10
Update __init__.py
Nomos11 Jul 21, 2025
d19be02
accompanying test
Nomos11 Jul 21, 2025
6bd9494
some DLV tests
Nomos11 Jul 28, 2025
9dbc651
changes in comparisons
Nomos11 Jul 28, 2025
c0bd6e0
RDP
Nomos11 Jul 28, 2025
2370106
alazar channel convenience
Nomos11 Jul 28, 2025
dd2bfcd
correct operator handling
Nomos11 Jul 28, 2025
2a29919
shift things, prepare move of modified LSB to qupulse_hdawg
Nomos11 Jul 28, 2025
d4e2029
throw out _ProgramType
Nomos11 Jul 29, 2025
e175356
typehint
Nomos11 Jul 29, 2025
873eab8
sc
Nomos11 Jul 29, 2025
32abd42
adapt tests
Nomos11 Jul 29, 2025
1f1808b
s->S
Nomos11 Jul 29, 2025
7a3f7af
... and deleted classes
Nomos11 Jul 29, 2025
079754a
💯
Nomos11 Jul 29, 2025
90f300b
and last one
Nomos11 Jul 29, 2025
7b65e69
trafos handling DLV
Nomos11 Jul 29, 2025
16717f7
gpt says autospec
Nomos11 Jul 29, 2025
129df8e
now fix this.
Nomos11 Jul 29, 2025
fcc2cf5
test sweepval detection
Nomos11 Jul 29, 2025
2cf1d07
use get_defined_channels
Nomos11 Jul 29, 2025
6010133
also needed for other linspacebuilder
Nomos11 Jul 30, 2025
f90b4e5
Merge pull request #914 from qutech/_padding_brackets
shumpohl Aug 1, 2025
a8a8296
Merge pull request #916 from qutech/_alazar_channel_convenience
shumpohl Aug 1, 2025
c1d3ced
want a white
Nomos11 Aug 1, 2025
0e98e09
ordering
Nomos11 Aug 1, 2025
b618bed
contains_dynamic_value()
Nomos11 Aug 1, 2025
5ffee0f
ordering inop
Nomos11 Aug 1, 2025
19e71ad
Remove dead code
shumpohl Aug 1, 2025
f73b942
immutable
Nomos11 Aug 1, 2025
a7faeb6
immutable 2
Nomos11 Aug 1, 2025
c8e1a99
fix
Nomos11 Aug 1, 2025
acf7099
have to add to lambdify modules
Nomos11 Aug 1, 2025
b8dc72e
initial, final values
Nomos11 Aug 13, 2025
d3e2fe3
some test for init/final vals
Nomos11 Aug 13, 2025
bc5f8d7
tja
Nomos11 Aug 13, 2025
67c6881
Merge pull request #922 from qutech/_experiment_followup-TReverseProps
shumpohl Aug 14, 2025
63ae0f6
Simplify DLV hash and frozen logic by using frozendict dependence. Pr…
shumpohl Aug 14, 2025
dec97ec
Use dataclass repr and test for roundtrip
shumpohl Aug 14, 2025
5e548ef
Use dataclass methods instead of self written
shumpohl Aug 14, 2025
6f7e4cd
Improve readability of ResolutionDependentValue code.
shumpohl Aug 14, 2025
888f234
Do not leak implementation detail in DynamicLinearValue.__repr__
shumpohl Aug 14, 2025
7cc3971
Fix error in ResolutionDependentValue evaluation
shumpohl Aug 14, 2025
30dc92b
Continue when coveralls upload fails
shumpohl Aug 14, 2025
6280e47
Also allow final coveralls interaction step to fail
shumpohl Aug 14, 2025
1848ea0
Merge pull request #923 from qutech/fix/coveralls_500_error
shumpohl Aug 14, 2025
025ec73
Merge branch 'fix/coveralls_500_error' into experiment_followup-DLV
shumpohl Aug 14, 2025
3229266
Remove mappingproxy from lambdification module content
shumpohl Aug 14, 2025
f7c3c2b
Rename sweepval kwarg
shumpohl Aug 14, 2025
21003ab
Merge pull request #917 from qutech/experiment_followup-DLV
Nomos11 Aug 14, 2025
1798978
Merge pull request #919 from qutech/_linspace_followup-transformations
shumpohl Aug 14, 2025
63c5b4d
Merge pull request #918 from qutech/_linspace_followup-AWGs
shumpohl Aug 14, 2025
5052cb8
avoid string expr in to_next_multiple
Nomos11 Aug 28, 2025
a07a154
stricter
Nomos11 Aug 28, 2025
0849652
Make variable names more verbose and remove comments
Aug 28, 2025
b22a33b
Add application oriented pytest benchmark
shumpohl Aug 28, 2025
76b40e1
Remove explicit release candidate dependency for gmpy2.
shumpohl Sep 3, 2025
896b1ae
Adjust type hints to pad_to requirements and do piecewise evaluation …
shumpohl Sep 3, 2025
fec6ed3
Merge pull request #926 from qutech/performance/to_next_multiple
shumpohl Sep 3, 2025
6c94555
Merge pull request #927 from qutech/fix/remove_gmpy2_hack
shumpohl Sep 3, 2025
6d2ebc1
Merge pull request #925 from qutech/_to_next_multiple_perf
shumpohl Sep 3, 2025
2253a6f
1=2
Nomos11 Nov 20, 2025
46035a5
also test for ch2
Nomos11 Nov 20, 2025
fb689c4
Merge pull request #930 from qutech/929-channel-check-typo-in-_zhinst…
shumpohl Nov 20, 2025
82b3cdd
Add test for lossless serialization roundtrip
Jan 21, 2026
3d4611d
Fix lossless float serialization
Jan 21, 2026
2d86c01
Merge pull request #932 from qutech/issues/931_lossy_float_serialization
Nomos11 Jan 21, 2026
1822406
Refactor context management for program builders. Most tests pass
Jan 26, 2026
e1176ed
Specify role of settings and context and add basic docstrings
Jan 26, 2026
78346bc
Adjust failing tests
Jan 26, 2026
c6f2e02
Add newspiece
Jan 26, 2026
1c6516f
Fix contextmanager type hints.
shumpohl Jan 27, 2026
fa1c64c
Merge pull request #933 from qutech/feature/program_builder_context
shumpohl Jan 27, 2026
27154c1
Add tests for metadata deserialization and implement it for the shipp…
shumpohl Jan 28, 2026
4c8bf3b
Merge pull request #937 from qutech/fix/pt_metadata_args
shumpohl Jan 28, 2026
3118394
Add tests for metadata deserialization and implement it for arithmeti…
shumpohl Jan 28, 2026
aca5603
Merge pull request #938 from qutech/fix/pt_metadata_args
shumpohl Jan 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 41 additions & 19 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,48 @@
name: Upload Python Package
name: Publish Python Package

on:
workflow_dispatch: {}
release:
types: [created]
types: [published]

jobs:
deploy:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'release' }}
name: Build release artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade build twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build
python -m twine upload dist/*
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install build tool
run: python3 -m pip install --upgrade build
- name: Build wheel & sdist
run: python3 -m build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist-files
path: dist/

test-publish:
if: ${{ github.event_name == 'workflow_dispatch' }}
needs: build
uses: ./.github/workflows/upload_to_repository.yml
with:
repository-url: https://test.pypi.org/legacy/
secrets:
pypi-token: ${{ secrets.TEST_PYPI_API_TOKEN }}

publish:
if: ${{ github.event_name == 'release' }}
needs: build
uses: ./.github/workflows/upload_to_repository.yml
with:
repository-url: https://upload.pypi.org/legacy/
secrets:
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
42 changes: 26 additions & 16 deletions .github/workflows/pythontest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,46 +11,41 @@ on:
- '**'
paths:
- 'qupulse/**y'
- 'qctoolkit/**'
- 'tests/**'
- 'setup.*'
- 'pyproject.toml'
- '.github/workflows/*'

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9"]
time-type: ["fractions", "gmpy2"]
python-version: ["3.10", "3.11", "3.12"]
numpy-version: [">=1.24,<2.0", ">=2.0"]
env:
INSTALL_EXTRAS: tests,plotting,zurich-instruments,tektronix,tabor-instruments


steps:
- name: Prepare gmpy2 build dependencies
if: ${{ matrix.time-type }} == 'gmpy2'
run: |
sudo apt-get install -y libgmp-dev libmpfr-dev libmpc-dev
echo "INSTALL_EXTRAS=${{ env.INSTALL_EXTRAS }},Faster-fractions" >> $GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# supported since 2.3
cache: pip
cache-dependency-path: setup.cfg

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install coverage coveralls

- name: Install numpy ${{ matrix.numpy-version }}
run: python -m pip install "numpy${{ matrix.numpy-version }}"

- name: Install package
run: |
python -m pip install .[${{ env.INSTALL_EXTRAS }}]
Expand All @@ -59,18 +54,31 @@ jobs:
run: |
coverage run -m pytest --junit-xml pytest.xml

- name: Generate valid name
run: |
numpy_version="${{ matrix.numpy-version }}"
if [[ $numpy_version == *"<2"* ]]; then
numpy_version="1"
else
numpy_version="2"
fi
MATRIX_NAME="python-${{ matrix.python-version }}-numpy-"$numpy_version
echo "MATRIX_NAME=$MATRIX_NAME" >> $GITHUB_ENV

- name: Upload coverage data to coveralls.io
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: python-${{ matrix.python-version }}-${{ matrix.time-type }}
COVERALLS_FLAG_NAME: ${{ env.MATRIX_NAME }}
COVERALLS_PARALLEL: true
# this step can fail
continue-on-error: true

- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Unit Test Results ( ${{ matrix.python-version }}-${{ matrix.time-type }} )
name: Unit Test Results ( ${{ env.MATRIX_NAME }} )
path: |
pytest.xml

Expand All @@ -86,13 +94,15 @@ jobs:
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# this step can fail
continue-on-error: true

event_file:
name: "Event File"
runs-on: ubuntu-latest
steps:
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Event File
path: ${{ github.event_path }}
31 changes: 31 additions & 0 deletions .github/workflows/upload_to_repository.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Upload artifacts

on:
workflow_call:
inputs:
repository-url:
required: true
type: string
secrets:
pypi-token:
required: true

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: dist-files
path: dist/
- name: Install Twine
run: python3 -m pip install --upgrade twine
- name: Upload
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi-token }}
run: python -m twine upload --repository-url ${{ inputs.repository-url }} dist/*
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ dist/*
doc/source/examples/.ipynb_checkpoints/*
**.asv
*.orig
MATLAB/+qc/personalPaths.mat
/doc/source/_autosummary/*
.idea/
.mypy_cache/*
tests/hardware/WX2184C.exe
.vscode/*
40 changes: 0 additions & 40 deletions .travis.yml

This file was deleted.

74 changes: 74 additions & 0 deletions .zenodo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"creators": [
{
"orcid": "0000-0002-9399-1055",
"affiliation": "RWTH Aachen University",
"name": "Humpohl, Simon"
},
{
"orcid": "0000-0001-8678-961X",
"affiliation": "RWTH Aachen University",
"name": "Prediger, Lukas"
},
{
"orcid": "0000-0002-8227-4018",
"affiliation": "RWTH Aachen University",
"name": "Cerfontaine, Pascal"
},
{
"affiliation": "Forschungszentrum Jülich",
"name": "Papajewski, Benjamin"
},
{
"orcid": "0000-0001-9927-3102",
"affiliation": "RWTH Aachen University",
"name": "Bethke, Patrick"
},
{
"orcid": "0000-0003-2057-9913",
"affiliation": "Forschungszentrum Jülich",
"name": "Lankes, Lukas"
},
{
"orcid": "0009-0006-9702-2979",
"affiliation": "Forschungszentrum Jülich",
"name": "Willmes, Alexander"
},
{
"orcid": "0009-0000-3779-4711",
"affiliation": "Forschungszentrum Jülich",
"name": "Kammerloher, Eugen"
}
],

"contributors": [
{
"orcid": "0000-0001-7018-1124",
"affiliation": "Netherlands Organisation for Applied Scientific Research TNO",
"name": "Eendebak, Pieter Thijs"
},
{
"name": "Kreutz, Maike",
"affiliation": "RWTH Aachen University"
},
{
"name": "Xue, Ran",
"affiliation": "RWTH Aachen University",
"orcid": "0000-0002-2009-6279"
}
],

"related_identifiers": [
{
"identifier": "2128/24264",
"relation": "isDocumentedBy",
"resource_type": "publication-thesis"
}
],

"license": "GPL-3.0-or-later",

"title": "qupulse: A Quantum compUting PULse parametrization and SEquencing framework",

"keywords": ["quantum computing", "control pulse"]
}
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

Loading