Skip to content

Add DAG substitute op to the C API. #15192

@kevinhartman

Description

@kevinhartman

What should we add?

We need a qk_dag_substitute_op function(s) so users can replace an operation within the DAG.

This might be more involved, depending on what's needed. We don't currently have a way to create a standalone QkCircuitInstruction to use as the replacement, and we don't have a QkOperation, to my knowledge.

We might need to have a few specialized functions for specific operation types:

  • qk_dag_substitute_op_with_gate
  • qk_dag_substitute_op_with_unitary

Metadata

Metadata

Labels

Projects

Status

Ready

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions