Skip to content

Commit

Permalink
Unpin Qiskit, upgrade to 1.3.2 (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
airwoodix authored Jan 20, 2025
1 parent 1407502 commit 70b00c3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 19 deletions.
24 changes: 10 additions & 14 deletions poetry.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pytest-httpx = { version = "^0.34.0", optional = true }
pytest-mock = { version = "^3.11.1", optional = true }
pytest-sugar = { version = "^1.0.0", optional = true }
python-dotenv = ">=1"
qiskit = "^1,<1.3"
qiskit = "^1"
qiskit-aer = ">=0.13.2"
qiskit-algorithms = { version = ">=0.2.1", optional = true }
qiskit-optimization = { version = ">=0.6.0", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion qiskit_aqt_provider/test/circuits.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def assert_circuits_equal_ignore_global_phase(
def assert_circuits_equivalent(result: QuantumCircuit, expected: QuantumCircuit) -> None:
"""Assert that the passed circuits are equivalent up to a global phase."""
msg = f"\nexpected:\n{expected}\nresult:\n{result}"
assert Operator(expected).equiv(Operator(result)), msg # noqa: S101
assert Operator.from_circuit(expected).equiv(Operator.from_circuit(result)), msg # noqa: S101


def empty_circuit(num_qubits: int, with_final_measurement: bool = True) -> QuantumCircuit:
Expand Down
4 changes: 1 addition & 3 deletions test/test_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,7 @@ def test_initialize_not_supported(offline_simulator_no_noise: AQTResource) -> No

with pytest.raises(
TranspilerError,
match=re.compile(
r"high\s?level\s?synthesis was unable to synthesize instruction", re.IGNORECASE
),
match=re.compile(r"unable to translate the operations in the circuit", re.IGNORECASE),
):
qiskit.transpile(qc, offline_simulator_no_noise)

Expand Down

0 comments on commit 70b00c3

Please sign in to comment.