Quimb simulation backend (qiskit_addon_aqc_tensor.simulation.quimb)

Quimb as a tensor network backend.

QuimbCircuitFactory

Quimb circuit factory.

QuimbSimulator

Settings for Quimb simulator.

QiskitQuimbConversionContext

Contains information about Qiskit-to-Quimb conversion, necessary to recover Qiskit parameters.

Functions

is_quimb_available()[source][source]

Return True is qiskit-quimb is installed, False otherwise.

Return type:

bool

qiskit_ansatz_to_quimb(qc, initial_parameters, /)[source][source]

Convert a Qiskit ansatz to a Quimb parametrized circuit.

Return type:

tuple[Circuit, QiskitQuimbConversionContext]

Parameters:
recover_parameters_from_quimb(circ_opt, ctx, /)[source][source]

Recover Qiskit circuit parameters from a Quimb circuit.

Parameters:
tnoptimizer_objective_kwargs(objective, /)[source]

Return keyword arguments for use with TNOptimizer(). :rtype: dict[str, Any]

  • loss_fn

  • loss_kwargs

Parameters:

objective (OneMinusFidelity)

Return type:

dict[str, Any]