Fix the compatibility issue with qibo-0.2.0 during circuit-to-TN conversion
This commit is contained in:
@@ -95,7 +95,8 @@ class QiboCircuitToEinsum:
|
||||
required_shape = self.op_shape_from_qubits(len(gate_qubits))
|
||||
self.gate_tensors.append(
|
||||
(
|
||||
cp.asarray(gate.matrix).reshape(required_shape),
|
||||
cp.asarray(gate.matrix(), dtype=self.dtype).reshape(
|
||||
required_shape),
|
||||
gate_qubits,
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user