Skip to content

Commit ec54fdb

Browse files
committed
Add measurements to circuits.
1 parent 3fe656e commit ec54fdb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration/backend_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,8 @@ def test_classical(
432432
c.X(0, condition=reg_leq(a, 1))
433433
c.Phase(0, condition=a[0])
434434

435+
c.measure_all()
436+
435437
backend = authenticated_quum_backend_qa
436438

437439
c = backend.get_compiled_circuit(c)
@@ -793,6 +795,7 @@ def test_wasm_qa(
793795
c.name = "test_wasm"
794796
a = c.add_c_register("a", 8)
795797
c.add_wasm_to_reg("add_one", wasfile, [a], [a])
798+
c.measure_all()
796799

797800
b = authenticated_quum_backend_qa
798801

@@ -862,6 +865,7 @@ def test_wasm_costs(
862865
c.name = "test_wasm"
863866
a = c.add_c_register("a", 8)
864867
c.add_wasm_to_reg("add_one", wasfile, [a], [a])
868+
c.measure_all()
865869

866870
b = authenticated_quum_backend_qa
867871

0 commit comments

Comments
 (0)