Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/bloqade/cirq_utils/emit/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,6 @@ class EmitCirq(EmitABC[EmitCirqFrame, cirq.Circuit]):
dialects: ir.DialectGroup = field(default_factory=_default_kernel)
void = cirq.Circuit()
qubits: Sequence[cirq.Qid] | None = None
_cached_invokes: dict[int, cirq.FrozenCircuit] = field(
init=False, default_factory=dict
)

def initialize(self) -> Self:
return super().initialize()
Expand Down
9 changes: 0 additions & 9 deletions test/cirq_utils/test_cirq_to_squin.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,6 @@ def multi_arg(n: int, p: float):
print(circuit)


if __name__ == "__main__":
test_kernel_with_args()


@pytest.mark.xfail
def test_amplitude_damping():
test_circuit(amplitude_damping)


def test_trotter():

# NOTE: stolen from jonathan's tutorial
Expand Down
26 changes: 1 addition & 25 deletions test/cirq_utils/test_clifford_to_cirq.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from bloqade import squin
from bloqade.pyqrack import Measurement, StackMemorySimulator
from bloqade.cirq_utils import emit, emit_circuit
from bloqade.cirq_utils import emit_circuit


def test_pauli():
Expand Down Expand Up @@ -211,30 +211,6 @@ def main():
print(circuit)


@pytest.mark.xfail
def test_invoke_cache():
@squin.kernel
def sub_kernel(q_: squin.qubit.Qubit):
squin.h(q_)

@squin.kernel
def main():
q = squin.qalloc(2)
q0 = q[0]
sub_kernel(q0)
sub_kernel(q[1])
sub_kernel(q0)

target = emit.base.EmitCirq(main.dialects)

circuit = target.run(main, ())

print(circuit)

# caches as well as squin.h and squin.broadcast.h with the different qubits
assert len(target._cached_invokes) == 6


def test_rot():
@squin.kernel
def main():
Expand Down
1 change: 0 additions & 1 deletion test/pyqrack/squin/test_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ def broadcast_adjoint():
assert result == ilist.IList([0, 0, 0])


@pytest.mark.xfail
def test_reset():
@squin.kernel
def main():
Expand Down