Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello committed Oct 11, 2023
1 parent 16911c1 commit e1186d4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/test_gates_gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,20 +854,20 @@ def test_rzx(backend):
assert gates.RZX(0, 1, theta).unitary


def test_rxy(backend):
def test_rxxyy(backend):
theta = 0.1234
nqubits = 2
initial_state = random_statevector(2**nqubits, backend=backend)
final_state = apply_gates(
backend,
[gates.RXY(0, 1, theta)],
[gates.RXXYY(0, 1, theta)],
nqubits=nqubits,
initial_state=initial_state,
)
# test decomposition
final_state_decompose = apply_gates(
backend,
gates.RXY(0, 1, theta).decompose(),
gates.RXXYY(0, 1, theta).decompose(),
nqubits=nqubits,
initial_state=initial_state,
)
Expand Down Expand Up @@ -897,10 +897,10 @@ def test_rxy(backend):
)

with pytest.raises(NotImplementedError):
gates.RXY(0, 1, theta).qasm_label
gates.RXXYY(0, 1, theta).qasm_label

assert not gates.RXY(0, 1, theta).clifford
assert gates.RXY(0, 1, theta).unitary
assert not gates.RXXYY(0, 1, theta).clifford
assert gates.RXXYY(0, 1, theta).unitary


def test_ms(backend):
Expand Down Expand Up @@ -1423,7 +1423,7 @@ def test_controlled_unitary_matrix(backend):
("RYY", (0, 1, 0.2)),
("RZZ", (0, 1, 0.3)),
("RZX", (0, 1, 0.4)),
("RXY", (0, 1, 0.5)),
("RXXYY", (0, 1, 0.5)),
("MS", (0, 1, 0.1, 0.2, 0.3)),
("GIVENS", (0, 1, 0.1)),
("RBS", (0, 1, 0.2)),
Expand Down

0 comments on commit e1186d4

Please sign in to comment.