@@ -481,7 +481,7 @@ def is_equivalent(self, circuit: QCircuit) -> bool:
481
481
>>> c1.is_equivalent(c2)
482
482
True
483
483
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
485
485
Also take into account Noise in the equivalence verification
486
486
"""
487
487
return matrix_eq (self .to_matrix (), circuit .to_matrix ())
@@ -524,7 +524,7 @@ def to_matrix(self) -> npt.NDArray[np.complex64]:
524
524
[ 0. , 0.70710678, 0. , -0.70710678],
525
525
[ 0.70710678, 0. , -0.70710678, 0. ]])
526
526
527
- # TODO implement and double check examples and test:
527
+ # 3M- TODO implement and double check examples and test:
528
528
the idea is to compute the tensor product of the matrices associated
529
529
with the gates of the circuit in a clever way (to minimize the number of
530
530
multiplications) and then return the big matrix
@@ -585,7 +585,7 @@ def to_gate(self) -> Gate:
585
585
>>> c = QCircuit([CNOT(0, 1), CNOT(1, 2), CNOT(0, 1), CNOT(2, 3)])
586
586
>>> c.to_gate().definition.matrix
587
587
588
- # TODO check implementation, example and test, this will only work
588
+ # 3M- TODO check implementation, example and test, this will only work
589
589
when circuit.to_matrix() will be implemented
590
590
"""
591
591
gate_def = UnitaryMatrix (self .to_matrix ())
0 commit comments