error using CircuitToEinsum NotImplementedError: circuit from qiskit not supported
#161
-
|
Hi team! My cuquantum cannot infer the package that defines the circuit object from qiskit. I am on WSL using qiskit version 0.43.2 and quantum-python version 24.3.0. I encounter this issue in a different project but here is some short code that replicates the error. Has anyone encountered this before? from cuquantum import cutensornet as cutn
from cuquantum import contract, CircuitToEinsum
import cupy as cp
from qiskit.circuit import QuantumCircuit, Parameter
num_qubits = 1
measurement_ops = 'Z'
light_cone = True
# Define the quantum circuit with one qubit and two parameters
theta = Parameter('θ')
phi = Parameter('φ')
parameters = [0.5,0.5]
circuit = QuantumCircuit(num_qubits)
circuit.rx(theta, 0)
circuit.ry(phi, 0)
circuit = circuit.bind_parameters({theta: parameters[0], phi: parameters[1]})
converter = CircuitToEinsum(circuit, backend='cupy')
einsum_expression, tensor_operands = converter.expectation(measurement_ops, light_cone)and this is the error : |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hello Dhanvi, Thanks for reporting. This is a miss when we bumped the support of qiskit>=1.0. For a temporary fix, you may:
We will fix this issue in the next cuquantum-python release. Thanks |
Beta Was this translation helpful? Give feedback.
-
|
This issue has been resolved in 24.11 release here. Closing the discussion |
Beta Was this translation helpful? Give feedback.
This issue has been resolved in 24.11 release here.
Closing the discussion