Qualtran icon indicating copy to clipboard operation
Qualtran copied to clipboard

TComplexity fails for CustomProgrammableRotationGateArray

Open fdmalone opened this issue 1 year ago • 1 comments

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

fdmalone avatar Sep 26 '23 22:09 fdmalone

I'd like to take this issue up please

suyashdamle avatar Sep 27 '23 17:09 suyashdamle

Closing as stale

mpharrigan avatar Aug 08 '24 15:08 mpharrigan