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
is_quimb_available()[source]
Return True
is qiskit-quimb is installed, False
otherwise.
Return type
qiskit_ansatz_to_quimb
qiskit_ansatz_to_quimb(qc, initial_parameters, /)[source]
Convert a Qiskit ansatz to a Quimb parametrized circuit.
Return type
tuple
[Circuit
, QiskitQuimbConversionContext
]
Parameters
- qc (QuantumCircuit)
- initial_parameters (Sequence[float])
recover_parameters_from_quimb
recover_parameters_from_quimb(circ_opt, ctx, /)[source]
Recover Qiskit circuit parameters from a Quimb circuit.
Parameters
- circ_opt (Circuit)
- ctx (QiskitQuimbConversionContext)
tnoptimizer_objective_kwargs
tnoptimizer_objective_kwargs(objective, /)
Return keyword arguments for use with TNOptimizer()
. :rtype: dict
[str
, Any
]
loss_fn
loss_kwargs
Parameters
objective (OneMinusFidelity)
Return type
Was this page helpful?
Report a bug or request content on GitHub.