Skip to content

Commit

Permalink
Merge branch 'oxidize-dag' of github.com:kevinhartman/qiskit into oxi…
Browse files Browse the repository at this point in the history
…dize-dag
  • Loading branch information
kevinhartman committed Jul 12, 2024
2 parents 765772c + f8de63a commit 519071c
Show file tree
Hide file tree
Showing 5 changed files with 482 additions and 142 deletions.
6 changes: 6 additions & 0 deletions crates/circuit/src/circuit_instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ impl PackedInstruction {
.as_ref()
.and_then(|args| args.condition.as_ref())
}

pub fn is_parameterized(&self) -> bool {
self.params
.iter()
.any(|x| matches!(x, Param::ParameterExpression(_)))
}
}

/// A single instruction in a :class:`.QuantumCircuit`, comprised of the :attr:`operation` and
Expand Down
Loading

0 comments on commit 519071c

Please sign in to comment.