Skip to content

Commit

Permalink
Remove a few debug prints from tests (#5879)
Browse files Browse the repository at this point in the history
These removals don't seem to affect the tests in any way. Don't merge until after #5878
  • Loading branch information
vtomole authored Sep 20, 2022
1 parent 45f33d1 commit 67b8f67
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion cirq-core/cirq/contrib/routing/swap_network_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,4 @@ def test_swap_network_str():
│ │ │ │
(4, 0): ───q(4)────────q(4)─────────q(4)───ZZ───q(4)───╱1╲───q(2)────────q(2)─────────q(2)───ZZ───q(2)───╱1╲───q(0)────────q(0)─────────q(0)───
""".strip()
print(actual_str)
assert actual_str == expected_str
2 changes: 0 additions & 2 deletions cirq-core/cirq/devices/noise_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ def test_op_identifier_subtypes():

def test_op_id_str():
op_id = OpIdentifier(cirq.XPowGate, cirq.LineQubit(0))
print(op_id)
print(repr(op_id))
assert str(op_id) == "<class 'cirq.ops.common_gates.XPowGate'>(cirq.LineQubit(0),)"
assert repr(op_id) == (
"cirq.devices.noise_utils.OpIdentifier(cirq.ops.common_gates.XPowGate, cirq.LineQubit(0))"
Expand Down
6 changes: 0 additions & 6 deletions cirq-core/cirq/experiments/xeb_simulation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import multiprocessing
import time
from typing import Dict, Any, Optional
from typing import Sequence

Expand Down Expand Up @@ -135,16 +134,11 @@ def test_incremental_simulate(multiprocess):
else:
pool = None

start = time.perf_counter()
df_ref = _ref_simulate_2q_xeb_circuits(circuits=circuits, cycle_depths=cycle_depths, pool=pool)
end1 = time.perf_counter()

df = simulate_2q_xeb_circuits(circuits=circuits, cycle_depths=cycle_depths, pool=pool)
end2 = time.perf_counter()
if pool is not None:
pool.terminate()
print("\nnew:", end2 - end1, "old:", end1 - start)

pd.testing.assert_frame_equal(df_ref, df)

# Use below for approximate equality, if e.g. you're using qsim:
Expand Down

0 comments on commit 67b8f67

Please sign in to comment.