From 388fbec712df90789d44e4f1e691e3ec43f604ec Mon Sep 17 00:00:00 2001 From: Fionn Malone Date: Wed, 10 Apr 2024 22:40:06 +0000 Subject: [PATCH] Fix indentation for test. --- qualtran/bloqs/rotations/phase_gradient_test.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qualtran/bloqs/rotations/phase_gradient_test.py b/qualtran/bloqs/rotations/phase_gradient_test.py index 7d16fa959..650830793 100644 --- a/qualtran/bloqs/rotations/phase_gradient_test.py +++ b/qualtran/bloqs/rotations/phase_gradient_test.py @@ -159,8 +159,8 @@ def test_add_scaled_val_into_phase_reg(bloq): c1 = bloq.on_classical_vals(**d) c2 = cbloq.on_classical_vals(**d) assert c1 == c2, f'{d=}, {c1=}, {c2=}' - bloq_unitary = cirq.unitary(bloq) - op = GateHelper(bloq).operation - circuit = cirq.Circuit(cirq.I.on_each(*op.qubits), cirq.decompose_once(op)) - decomposed_unitary = circuit.unitary(qubit_order=op.qubits) - np.testing.assert_allclose(bloq_unitary, decomposed_unitary) + bloq_unitary = cirq.unitary(bloq) + op = GateHelper(bloq).operation + circuit = cirq.Circuit(cirq.I.on_each(*op.qubits), cirq.decompose_once(op)) + decomposed_unitary = circuit.unitary(qubit_order=op.qubits) + np.testing.assert_allclose(bloq_unitary, decomposed_unitary)