File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
src/braket/experimental_capabilities Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1414from __future__ import annotations
1515
1616import types
17+ import warnings
1718
1819
1920class ExperimentalCapabilityContextError (Exception ):
@@ -83,6 +84,18 @@ def __enter__(self) -> None:
8384 """
8485 GLOBAL_EXPERIMENTAL_CAPABILITY_CONTEXT .enable ()
8586
87+ warnings .warn (
88+ (
89+ "You are enabling experimental capabilities. To view descriptions and "
90+ "restrictions of experimental capabilities, please review Amazon Braket "
91+ "Developer Guide ("
92+ "https://docs.aws.amazon.com/braket/latest/developerguide/braket-experimental-capabilities.html"
93+ ")."
94+ ),
95+ category = UserWarning ,
96+ stacklevel = 1 ,
97+ )
98+
8699 def __exit__ (
87100 self ,
88101 exc_type : type [BaseException ] | None ,
You can’t perform that action at this time.
0 commit comments