Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New propagation library created #99

Merged
merged 15 commits into from
Jun 15, 2021
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions c3/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@
from c3.signal.gates import Instruction
from c3.model import Model
from c3.utils.tf_utils import (
tf_batch_propagate,
tf_propagation_lind,
tf_matmul_left,
tf_state_to_dm,
tf_super,
tf_vec_to_dm,
)

from c3.libraries.propagation import (
tf_batch_propagate,
tf_propagation_lind,
)
from c3.utils.qt_utils import perfect_single_q_parametric_gate


Expand Down Expand Up @@ -298,7 +301,7 @@ def process(self, populations, labels=None):
populations_final = []
populations_no_rescale = []
for pops in populations:
# TODO: Loop over all tasks in a general fashion
# TODO: Loop over all model.tasks in a general fashion
# TODO: Selecting states by label in the case of computational space
if "conf_matrix" in model.tasks:
pops = model.tasks["conf_matrix"].confuse(pops)
Expand Down
4 changes: 4 additions & 0 deletions c3/libraries/fidelities.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@
tf_average_fidelity,
tf_superoper_average_fidelity,
tf_state_to_dm,
)

from c3.libraries.propagation import (
evaluate_sequences,
)

from c3.utils.qt_utils import (
basis,
perfect_cliffords,
Expand Down
Loading