Skip to content

Commit 86612d7

Browse files
version0.1.1
1 parent 677df8b commit 86612d7

File tree

6 files changed

+4
-11
lines changed

6 files changed

+4
-11
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
## 0.1.1
6+
57
### Added
68

79
- Add `quoperator` method to get `QuOperator` representation of the circuit unitary

tensorcircuit/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.1.0"
1+
__version__ = "0.1.1"
22
__author__ = "TensorCircuit Authors"
33
__creator__ = "refraction-ray"
44

tensorcircuit/backends/abstract_backend.py

-1
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,6 @@ def scatter(self: Any, operand: Tensor, indices: Tensor, updates: Tensor) -> Ten
936936
"Backend '{}' has not implemented `scatter`.".format(self.name)
937937
)
938938

939-
# TODO(@refraction-ray): coo attributes
940939
def coo_sparse_matrix(
941940
self: Any, indices: Tensor, values: Tensor, shape: Tensor
942941
) -> Tensor:

tensorcircuit/backends/tensorflow_backend.py

-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ def update(self, grads: pytree, params: pytree) -> pytree:
5151
return TensorFlowBackend.tree_map(None, tf.convert_to_tensor, params)
5252
return params
5353

54-
# TODO(@refraction-ray): complex compatible for opt interface
55-
# (better not use complex variables though)
56-
5754

5855
def _tensordot_tf(
5956
self: Any, a: Tensor, b: Tensor, axes: Union[int, Sequence[Sequence[int]]]

tensorcircuit/circuit.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ def __init__(
9393
else:
9494
self.has_inputs = False
9595
self.split = split
96-
# TODO(@refraction-ray): split settings at global level?
9796
if (inputs is None) and (mps_inputs is None):
9897
nodes = [
9998
tn.Node(
@@ -1720,7 +1719,7 @@ def expectation(
17201719
>>> tc.expectation(*x1x2, ket=s3, bra=s2)
17211720
(0.7071067690849304+0j) # 1/sqrt(2)
17221721
1723-
:param ket: :math:`ket`.
1722+
:param ket: :math:`ket`. The state in tensor or ``QuVector`` format
17241723
:type ket: Tensor
17251724
:param bra: :math:`bra`, defaults to None, which is the same as ``ket``.
17261725
:type bra: Optional[Tensor], optional
@@ -1732,7 +1731,6 @@ def expectation(
17321731
:return: The result of :math:`\\langle bra\\vert ops \\vert ket\\rangle`.
17331732
:rtype: Tensor
17341733
"""
1735-
# TODO: incomplete docstring
17361734
if bra is None:
17371735
bra = ket
17381736
if isinstance(ket, QuOperator):

tensorcircuit/keras.py

-3
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ def call(
112112
# return dict(list(base_config.items()) + list(config.items()))
113113

114114

115-
# TODO(@refraction-ray): more specific keras layer as provided by tfq
116-
117-
118115
def output_asis_loss(y_true: tf.Tensor, y_pred: tf.Tensor) -> tf.Tensor:
119116
"""
120117
The keras loss function that directly taking the model output as the loss.

0 commit comments

Comments
 (0)