github
650 of 825 new or added lines in 11 files covered. (78.79%)
4 existing lines in 1 file now uncovered.3780 of 4427 relevant lines covered (85.39%)
3.4 hits per line
1 |
"""
|
|
2 |
Operations on quantum circuits. |
|
3 |
"""
|
|
|
import warnings |
4✔ |
5 |
from .gates import * |
4✔ |
6 |
from .gateclass import * |
4✔ |
|
from .measurement import * |
4✔ |
8 |
|
|
9 |
|
|
|
def _add_deprecation(fun, msg): |
4✔ |
NEW
UNCOV
|
def newfun(*args, **kwargs): |
× |
NEW
UNCOV
|
warnings.warn( |
× |
13 |
msg, |
|
14 |
DeprecationWarning,
|
|
15 |
stacklevel=2,
|
|
16 |
) |
|
NEW
UNCOV
|
return fun(*args, **kwargs)
|
× |
18 |
|
|
NEW
UNCOV
|
return newfun
|
× |