Skip to content

Commit

Permalink
Remove unused function.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdmalone committed Oct 9, 2023
1 parent 60160ef commit 2fa7b66
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions qualtran/bloqs/chemistry/thc.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,6 @@ def add_from_bloq_register_flat_qubits(
return tuple(s for _, s in out_soqs.items())


def add_from_bloq_registers(
bb: 'BloqBuilder', cirq_bloq: Bloq, **bloq_regs: SoquetT
) -> Tuple[SoquetT, ...]:
"""Shift from bitsize=n, shape=() to bitsize=1, shape=(n,)"""
cirq_regs = {}
for reg_name, soq in bloq_regs.items():
cirq_regs[reg_name] = bb.split(soq)
cirq_regs = bb.add(cirq_bloq, **cirq_regs)
out_soqs = {}
for ix, (reg_name, soq) in enumerate(bloq_regs.items()):
out_soqs[reg_name] = bb.join(cirq_regs[ix])
return tuple(s for _, s in out_soqs.items())


@frozen
class UniformSuperpositionTHC(Bloq):
r"""Prepare uniform superposition state for THC.
Expand Down

0 comments on commit 2fa7b66

Please sign in to comment.