def test_no_dependence(self): """Test case where operations do not depend on each other. This should result in a graph with no edges.""" ops = [qml.RX(0.43, wires=0), qml.RY(0.35, wires=1)] res = CircuitGraph(ops, {}).graph assert len(res) == 2 assert not res.edges()
def test_no_dependence(self): """Test case where operations do not depend on each other. This should result in a graph with no edges.""" queue = [qml.RX(0.43, wires=0, do_queue=False), qml.RY(0.35, wires=1, do_queue=False)] obs = [] res = CircuitGraph(queue, obs).graph assert len(res) == 2 assert not res.edges()