Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax pin on Qiskit 1.0 #314

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,35 @@ jobs:
- name: Install and Run Tests
run: tox -e py
if: runner.os == 'Windows'
test-qiskit-1:
name: tests-python3.10-ubuntu-latest-qiskit-1.0
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-tests-${{ hashFiles('setup.py','requirements-dev.txt','constraints.txt') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-pip-tests-
${{ runner.os }}-${{ matrix.python-version }}-pip-
${{ runner.os }}-${{ matrix.python-version }}
- name: Install package
run: |
set -e
python -m pip install -U pip
python -m pip install \
-c constraints.txt \
-r requirements-dev.txt \
jax jaxlib diffrax \
'qiskit>=1.0.0rc1' \
.
- name: Run tests
run: stestr run

lint:
name: lint
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"numpy>=1.17",
"scipy>=1.4",
"matplotlib>=3.0",
"qiskit<1.0",
"qiskit",
"multiset>=3.0.1",
"sympy>=1.12",
"arraylias"
Expand Down
9 changes: 7 additions & 2 deletions test/dynamics/pulse/test_pulse_to_signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@
import numpy as np
import sympy as sym

import qiskit
from qiskit import pulse
from qiskit.pulse import Schedule
from qiskit.pulse.transforms.canonicalization import block_to_schedule
from qiskit.providers.fake_provider import FakeQuito
from qiskit import QiskitError

if qiskit.__version__.startswith("0."):
from qiskit.providers.fake_provider import FakeNairobi as Fake7QPulseV1
else:
from qiskit.providers.fake_provider import Fake7QPulseV1

from qiskit_dynamics.pulse import InstructionToSignals
from qiskit_dynamics.signals import DiscreteSignal

Expand Down Expand Up @@ -338,7 +343,7 @@ def test_barrier_instructions(self):
"""Test correct parsing of schedule with barrier instructions."""

# this example needs any backend with at least 2 qubits
backend = FakeQuito()
backend = Fake7QPulseV1()

with pulse.build(backend) as sched_block:
pulse.play(pulse.Constant(duration=3, amp=0.5), pulse.DriveChannel(0))
Expand Down
Loading