Ejemplo n.º 1
0
    def test_jacobian_options_copied(self):
        """Tests that the jacobian_options attribute is copied"""

        tape = JacobianTape()
        tape.jacobian_options = {"method": "device", "jacobian_method": "adjoint_jacobian"}

        tape_copy = tape.copy()

        assert tape_copy.jacobian_options == {
            "method": "device",
            "jacobian_method": "adjoint_jacobian",
        }