-
Notifications
You must be signed in to change notification settings - Fork 172
Expand file tree
/
Copy path__init__.py
More file actions
76 lines (68 loc) · 1.43 KB
/
__init__.py
File metadata and controls
76 lines (68 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
from . import telemetry_events
from ._qsharp import (
init,
eval,
run,
compile,
circuit,
estimate,
logical_counts,
set_quantum_seed,
set_classical_seed,
dump_machine,
dump_circuit,
StateDump,
ShotResult,
PauliNoise,
DepolarizingNoise,
BitFlipNoise,
PhaseFlipNoise,
CircuitGenerationMethod,
QdkContext,
new_context,
get_context,
context_of,
)
# Backward-compatible alias
QSharpContext = QdkContext
telemetry_events.on_import()
from ._native import Result, Pauli, QSharpError, TargetProfile, estimate_custom
# IPython notebook specific features
try:
if __IPYTHON__: # type: ignore
from ._ipython import register_magic, enable_classic_notebook_codemirror_mode
register_magic()
enable_classic_notebook_codemirror_mode()
except NameError:
pass
__all__ = [
"init",
"eval",
"run",
"set_quantum_seed",
"set_classical_seed",
"dump_machine",
"dump_circuit",
"compile",
"circuit",
"estimate",
"estimate_custom",
"logical_counts",
"Result",
"Pauli",
"QSharpError",
"TargetProfile",
"StateDump",
"ShotResult",
"PauliNoise",
"DepolarizingNoise",
"BitFlipNoise",
"PhaseFlipNoise",
"CircuitGenerationMethod",
"QdkContext",
"new_context",
"get_context",
"context_of",
]