Skip to content

Commit

Permalink
Use MCMTGate instead of deprecated MCMT (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec authored Dec 13, 2024
1 parent d0cee1c commit 6b08af3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

## unreleased

- AerBackend now reject circuits with too many qubits
- AerBackend now reject circuits with too many qubits
- Update pytket version requirement to 1.37.0.
- Update qiskit version requirement to 1.3.1.

## 0.61.0 (December 2024)

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
packages=find_namespace_packages(include=["pytket.*"]),
include_package_data=True,
install_requires=[
"pytket >= 1.35.0",
"qiskit ~= 1.2.4",
"pytket >= 1.37.0",
"qiskit ~= 1.3.1",
"qiskit-ibm-runtime >= 0.30.0",
"qiskit-aer >= 0.15.1",
"numpy >= 1.26.4",
Expand Down
5 changes: 3 additions & 2 deletions tests/qiskit_convert_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
StandardEquivalenceLibrary,
)
from qiskit.circuit.library import (
MCMT,
MCMTGate,
PauliEvolutionGate,
RealAmplitudes,
RYGate,
Expand Down Expand Up @@ -613,7 +613,7 @@ def add_cnry(
else:
# param was "raw", so needs an extra PI.
new_ry_gate = RYGate(param * pi)
new_gate = MCMT(
new_gate = MCMTGate(
gate=new_ry_gate, num_ctrl_qubits=len(qbits) - 1, num_target_qubits=1
)
circ.append(new_gate, [qr[nn] for nn in qbits])
Expand Down Expand Up @@ -1170,6 +1170,7 @@ def test_symbolic_param_conv() -> None:
)


@pytest.mark.xfail(reason="https://github.com/CQCL/pytket-qiskit/issues/427")
def test_implicit_swap_warning() -> None:
c = Circuit(2).H(0).SWAP(0, 1)
c.replace_SWAPs()
Expand Down

0 comments on commit 6b08af3

Please sign in to comment.