From 87b4ac8ac4b2dad9ffeb2d22b86c67c19018e926 Mon Sep 17 00:00:00 2001 From: Yao Tang Date: Thu, 20 Jul 2023 14:31:04 +0100 Subject: [PATCH] Fix typos --- pytket/tests/circuit_test.py | 2 +- tket/test/src/Circuit/test_Circ.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pytket/tests/circuit_test.py b/pytket/tests/circuit_test.py index c0ef2434ec..7bfeb54f5a 100644 --- a/pytket/tests/circuit_test.py +++ b/pytket/tests/circuit_test.py @@ -1024,7 +1024,7 @@ def test_depth() -> None: assert c.depth_by_type({OpType.CX, OpType.H}) == 6 assert c.depth_by_type({OpType.CZ, OpType.H}) == 6 assert c.depth_by_type(set()) == 0 - assert c.depth_2q_gates() == 6 + assert c.depth_2q() == 6 def test_op_dagger_transpose() -> None: diff --git a/tket/test/src/Circuit/test_Circ.cpp b/tket/test/src/Circuit/test_Circ.cpp index 04065ed0bc..bfa242003f 100644 --- a/tket/test/src/Circuit/test_Circ.cpp +++ b/tket/test/src/Circuit/test_Circ.cpp @@ -1326,7 +1326,7 @@ SCENARIO("Test depth_by_type method") { REQUIRE(circ.depth_by_types({OpType::CX, OpType::CY}) == 2); } } -SCENARIO("Test depth_2q_gates method") { +SCENARIO("Test depth_2q method") { GIVEN("2q OpTypes") { Circuit circ(3, 1); circ.add_op(OpType::CX, {0, 1});