def test_empty(self) -> None: circuit = Circuit(1) assert not circuit.is_parameterized() circuit = Circuit(4) assert not circuit.is_parameterized() circuit = Circuit(4, [2, 2, 3, 3]) assert not circuit.is_parameterized()
def test_value(self, r6_qudit_circuit: Circuit) -> None: assert (r6_qudit_circuit.is_parameterized() != r6_qudit_circuit.is_constant()) if any(g.is_parameterized() for g in r6_qudit_circuit.get_gate_set()): assert r6_qudit_circuit.is_parameterized() else: assert not r6_qudit_circuit.is_parameterized()
def test_is_parameterized(self, simple_circuit: Circuit) -> None: assert not simple_circuit.is_parameterized()
def test_type(self, r6_qudit_circuit: Circuit) -> None: assert isinstance(r6_qudit_circuit.is_parameterized(), bool)
def test_is_parameterized(self, toffoli_circuit: Circuit) -> None: assert not toffoli_circuit.is_parameterized()