Skip to content

Commit

Permalink
remove circuit constructor
Browse files Browse the repository at this point in the history
unneeded
  • Loading branch information
sjdilkes committed Dec 5, 2024
1 parent 8fb596e commit 4ae461b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
3 changes: 0 additions & 3 deletions tket/include/tket/Transformations/GreedyPauliOptimisation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,6 @@ typedef boost::adj_list_vertex_property_map<
*/
class GPGraph {
public:
/** Construct an GPGraph from a circuit */
GPGraph(const Circuit& circ);

/** Construct an GPGraph from the circuit size */
GPGraph(qubit_vector_t qubits, bit_vector_t bits);

Expand Down
18 changes: 0 additions & 18 deletions tket/src/Transformations/GreedyPauliConverters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,24 +111,6 @@ static bool nodes_commute(const PauliNode_ptr& n1, const PauliNode_ptr& n2) {
return true;
}

GPGraph::GPGraph(const Circuit& circ)
: n_qubits_(circ.n_qubits()), n_bits_(circ.n_bits()) {
qubit_vector_t qubits = circ.all_qubits();
bit_vector_t bits = circ.all_bits();
for (const Qubit& q : qubits) {
TKET_ASSERT(q.reg_name() == q_default_reg());
TKET_ASSERT(q.index().at(0) < qubits.size());
}
for (const Bit& b : bits) {
TKET_ASSERT(b.reg_name() == c_default_reg());
TKET_ASSERT(b.index().at(0) < bits.size());
}
cliff_ = UnitaryRevTableau(n_qubits_);
for (const Command& cmd : circ.get_commands()) {
apply_gate_at_end(cmd);
}
}

GPGraph::GPGraph(qubit_vector_t qubits, bit_vector_t bits)
: n_qubits_(qubits.size()), n_bits_(bits.size()) {
for (const Qubit& q : qubits) {
Expand Down

0 comments on commit 4ae461b

Please sign in to comment.