Skip to content

Commit 93db998

Browse files
committed
Slightly more extensive tests - also covers parameter vetors and parameter expresssions
1 parent 558ff63 commit 93db998

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/python/circuit/test_circuit_load_from_qpy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ def test_parameter_expression(self):
368368
def test_degenerate_parameter_expression(self):
369369
"""Test a circuit with a parameter expression that simplifies to 0."""
370370
x = Parameter("x")
371-
cases = [0 * x, x - x]
371+
y_vec = ParameterVector("y", 2)
372+
cases = [0 * x, x - x, 0 * y_vec[0], 0 * (x + y_vec[1])]
372373
for case in cases:
373374
qc = QuantumCircuit(1)
374375
qc.rz(case, 0)

0 commit comments

Comments
 (0)