Skip to content

Commit ae2360d

Browse files
test: replace t factory test with physical counts
1 parent 3c2f559 commit ae2360d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/algorithms/test_quantum_algorithm.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ def test_resource_estimation_azure(quantum_algorithm: QuantumAlgorithm) -> None:
6666
)
6767

6868

69-
def test_magic_state_factories(quantum_algorithm: QuantumAlgorithm) -> None:
70-
"""Test that at least one T factory is present in the resource estimate."""
69+
def test_physical_counts(quantum_algorithm: QuantumAlgorithm) -> None:
70+
"""Test that the physical counts from the resource estimates are non-zero."""
7171
estimator_result = quantum_algorithm.estimate_resources_azure(
7272
{"qubitParams": {"name": "qubit_gate_ns_e3"}}
7373
)
74-
assert estimator_result["physicalCounts"]["breakdown"]["numTfactories"] >= 1
74+
assert estimator_result["physicalCounts"]["physicalQubits"] > 0
75+
assert estimator_result["physicalCounts"]["runtime"] > 0

0 commit comments

Comments
 (0)