qiskit_quimb

qiskit_quimb.quimb_circuit(circuit, quimb_circuit_class=<class 'quimb.tensor.circuit.Circuit'>, **kwargs)[source]

Convert a Qiskit circuit to a quimb circuit.

The quimb circuit is constructed using the from_gates method of the quimb circuit class (quimb.tensor.Circuit by default), passing along the keyword arguments from kwargs.

Parameters:
  • circuit (QuantumCircuit) – The Qiskit circuit.

  • quimb_circuit_class (type[Circuit]) – The quimb.tensor.Circuit subclass to use.

Return type:

Circuit

Returns:

The quimb circuit.

qiskit_quimb.quimb_gate(op, qubits, **kwargs)[source]

Convert a Qiskit gate to a quimb gate, or None in case of a barrier.

Return type:

Gate | None

qiskit_quimb.quimb_gates(circuit)[source]

Convert a Qiskit circuit to a list of quimb gates.

Return type:

list[Gate]