File tree Expand file tree Collapse file tree 5 files changed +15
-8
lines changed Expand file tree Collapse file tree 5 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 22
33## Unreleased
44
5+ ### Changed
6+
7+ - Downgrading some logger warning to info
8+
9+ ### Fixed
10+
11+ - Fix quafu provider
12+
513## 1.0.1
614
715### Fixed
Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ def jit(
392392 jit_compile : Optional [bool ] = None ,
393393 ** kws : Any
394394 ) -> Callable [..., Any ]:
395- logger .warning ("numpy backend has no jit interface, just do nothing" )
395+ logger .info ("numpy backend has no jit interface, just do nothing" )
396396 return f
397397 # raise NotImplementedError("numpy backend doesn't support jit compiling")
398398
Original file line number Diff line number Diff line change 1818try :
1919 from . import tencent # type: ignore
2020except (ImportError , ModuleNotFoundError ):
21- logger .warning ("fail to load cloud provider module: tencent" )
21+ logger .info ("fail to load cloud provider module: tencent" )
2222
2323try :
2424 from . import local
2525except (ImportError , ModuleNotFoundError ):
26- logger .warning ("fail to load cloud provider module: local" )
26+ logger .info ("fail to load cloud provider module: local" )
2727
2828try :
2929 from . import quafu_provider
3030except (ImportError , ModuleNotFoundError ):
31- pass
32- # logger.warning("fail to load cloud provider module: quafu")
31+ logger .info ("fail to load cloud provider module: quafu" )
3332
3433package_name = "tensorcircuit"
3534thismodule = sys .modules [__name__ ]
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ def c2qasm(c: Any) -> str:
4848 source = c2qasm (circuit )
4949 else :
5050 source = [c2qasm (c ) for c in circuit ] # type: ignore
51- user = User ()
52- user .save_apitoken (token )
51+ user = User (token )
52+ user .save_apitoken ()
5353
5454 def c2task (source : str ) -> Task :
5555 nq = int (source .split ("\n " )[2 ].split ("[" )[1 ].split ("]" )[0 ]) # type: ignore
Original file line number Diff line number Diff line change 2222 from qiskit .circuit .parametervector import ParameterVectorElement
2323 from qiskit .circuit .quantumcircuitdata import CircuitInstruction
2424except ImportError :
25- logger .warning (
25+ logger .info (
2626 "Please first ``pip install -U qiskit`` to enable related functionality in translation module"
2727 )
2828 CircuitInstruction = Any
You can’t perform that action at this time.
0 commit comments