Skip to content

Commit 1595ea9

Browse files
fix: added back the 3M-TODOs so that the doctest passes
1 parent e9b2920 commit 1595ea9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mpqp/core/circuit.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def is_equivalent(self, circuit: QCircuit) -> bool:
481481
>>> c1.is_equivalent(c2)
482482
True
483483
484-
TODO: will only work once the circuit.to_matrix is implemented
484+
3M-TODO: will only work once the circuit.to_matrix is implemented
485485
Also take into account Noise in the equivalence verification
486486
"""
487487
return matrix_eq(self.to_matrix(), circuit.to_matrix())
@@ -524,7 +524,7 @@ def to_matrix(self) -> npt.NDArray[np.complex64]:
524524
[ 0. , 0.70710678, 0. , -0.70710678],
525525
[ 0.70710678, 0. , -0.70710678, 0. ]])
526526
527-
# TODO implement and double check examples and test:
527+
# 3M-TODO implement and double check examples and test:
528528
the idea is to compute the tensor product of the matrices associated
529529
with the gates of the circuit in a clever way (to minimize the number of
530530
multiplications) and then return the big matrix
@@ -585,7 +585,7 @@ def to_gate(self) -> Gate:
585585
>>> c = QCircuit([CNOT(0, 1), CNOT(1, 2), CNOT(0, 1), CNOT(2, 3)])
586586
>>> c.to_gate().definition.matrix
587587
588-
# TODO check implementation, example and test, this will only work
588+
# 3M-TODO check implementation, example and test, this will only work
589589
when circuit.to_matrix() will be implemented
590590
"""
591591
gate_def = UnitaryMatrix(self.to_matrix())

0 commit comments

Comments
 (0)