Skip to content

Commit

Permalink
Fix indentation for test.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdmalone committed Apr 10, 2024
1 parent 984d58e commit 388fbec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qualtran/bloqs/rotations/phase_gradient_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 388fbec

Please sign in to comment.