Avoid using QuantumCircuit.name
and eval
to encode information
#14
Labels
enhancement
New feature or request
QuantumCircuit.name
and eval
to encode information
#14
Currently, the function
sqt.basis.equidistant.get_approximately_equidistant_circuits
is encoding the 1-qubit quantum state prepared by each quantum circuit returned as a string representation of the 3-dimensional point on the unit sphere representing the state, in the quantum circuit name.This has been done to tie together a quantum circuit with the state it prepares and ensure that the library was recovering the correct results from the jobs. The goal was to create the circuits and then be able to recover them and the point they prepare with something like:
This is bad for several reasons, using
eval
being the most obvious and visible one. Due to that, it would be nice to be able to remove that behaviour from the library. A few potential tracks:QuantumCircuit.name
will still have to be fixed to known values, but could be a simple integer that would then index in a list of points.QuantumCircuit
as JSON (which, with the current code, requires to also save theQuantumCircuit
name),The text was updated successfully, but these errors were encountered: