Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
ewinston committed Mar 20, 2024
1 parent 24a3580 commit c442fe3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions test/python/circuit/test_instructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,10 @@ def test_instructions_soft_compare(self):
)

# Test that when names are the same but number of qubits differ we get False
self.assertFalse(
Instruction("u", 1, 0, []).soft_compare(Instruction("u", 2, 0, []))
)
self.assertFalse(Instruction("u", 1, 0, []).soft_compare(Instruction("u", 2, 0, [])))

# Test that when names are the same but number of clbits differ we get False
self.assertFalse(
Instruction("u", 1, 0, []).soft_compare(Instruction("u", 1, 1, []))
)
self.assertFalse(Instruction("u", 1, 0, []).soft_compare(Instruction("u", 1, 1, [])))

# Test cutoff precision.
self.assertFalse(
Expand All @@ -138,7 +134,6 @@ def test_instructions_soft_compare(self):
Instruction("v", 1, 0, [0.4 + 1.0e-20, phi]).soft_compare(
Instruction("v", 1, 0, [0.4, phi])
)

)

def test_instructions_equal_with_parameter_expressions(self):
Expand Down

0 comments on commit c442fe3

Please sign in to comment.