Skip to content

Commit 6d676da

Browse files
committed
Support multiple folding stacks.
1 parent 0d985a7 commit 6d676da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test_two_qubits.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ def test_hamiltonians(get_two_qubit_chip) -> None:
4343
@pytest.mark.integration
4444
def test_propagation(get_two_qubit_chip) -> None:
4545
"""Test that result of the propagation code does not change."""
46+
GATE_STR = "rx90p[0]"
4647
exp = get_two_qubit_chip
4748
pmap = exp.pmap
49+
instr = pmap.instructions[GATE_STR]
50+
steps = int((instr.t_end - instr.t_start) * exp.sim_res)
4851
result = exp.propagation(
49-
pmap.model, pmap.generator, pmap.instructions["rx90p[0]"], exp.folding_stack
52+
pmap.model, pmap.generator, pmap.instructions["rx90p[0]"], exp.folding_stack[steps]
5053
)
5154
propagator = result["U"]
5255
almost_equal(propagator, test_data["propagator"])

0 commit comments

Comments
 (0)