Qualtran
Qualtran copied to clipboard
TComplexity fails for CustomProgrammableRotationGateArray
Description of the issue
TComplexity fails for CustomProgrammableRotationGateArray.
How to reproduce the issue
import cirq_ft
import cirq
from cirq_ft.algos.programmable_rotation_gate_array_test import CustomProgrammableRotationGateArray, construct_custom_prga
from cirq_ft.infra.jupyter_tools import display_gate_and_compilation
pga = construct_custom_prga(*[[1, 2, 3], [4, 5, 6]], kappa=2, rotation_gate=cirq.Z)
greedy_mm = cirq_ft.GreedyQubitManager(prefix="_a")
g = cirq_ft.testing.GateHelper(
pga, context=cirq.DecompositionContext(greedy_mm)
)
display_gate_and_compilation(g)
TypeError: couldn't compute TComplexity of:
type:
value: CZ**0.25(kappa_load_target0, rotations_target)
Cirq version
You can get the cirq version by printing cirq.__version__
. From the command line:
1.2.0
I'd like to take this issue up please
Closing as stale