From 4672a5aa5450933d57ab5a2d6af33b94cbcd0b14 Mon Sep 17 00:00:00 2001 From: Ed Younis Date: Thu, 1 Aug 2024 13:54:20 -0400 Subject: [PATCH] Cleaned up leftover from previous fix --- bqskit/passes/mapping/placement/trivial.py | 2 +- tests/ir/gates/composed/test_power.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bqskit/passes/mapping/placement/trivial.py b/bqskit/passes/mapping/placement/trivial.py index df54d94e5..95ee91d3b 100644 --- a/bqskit/passes/mapping/placement/trivial.py +++ b/bqskit/passes/mapping/placement/trivial.py @@ -20,7 +20,7 @@ async def run(self, circuit: Circuit, data: PassData) -> None: model = BasePass.get_model(circuit, data) data['placement'] = trivial_placement - _logger.info(f'Placed qudits on {data["placement"]}') + _logger.info(f'Placed qudits on {data['placement']}') # Raise an error if this is not a valid placement sg = model.coupling_graph.get_subgraph(data['placement']) diff --git a/tests/ir/gates/composed/test_power.py b/tests/ir/gates/composed/test_power.py index 4f19f57ae..82f5c3634 100644 --- a/tests/ir/gates/composed/test_power.py +++ b/tests/ir/gates/composed/test_power.py @@ -34,7 +34,7 @@ def _recursively_calc_power_grad( dgn = _recursively_calc_power_grad(g, dg, power - 1) return g @ dgn + dg @ g.ipower(power - 1) -from bqskit.ir.gates import CRYGate + @given(gates_and_params(), integers(min_value=-10, max_value=10)) def test_power_gate(g_and_p: tuple[Gate, RealVector], power: int) -> None: gate, params = g_and_p