qrisp.quantum_backtracking.QuantumBacktrackingTree.copy#

QuantumBacktrackingTree.copy()[source]#

Returns a copy of self. Copy means a QuantumBacktrackingTree with identical depth, accept/reject functions etc. but with freshly allocated QuantumVariables.

Returns:
QuantumBacktrackingTree

Another instance with the same depth/accept/reject etc.