Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
erick-xanadu committed Jul 31, 2024
1 parent a6d1e82 commit 93e195c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions frontend/catalyst/jax_tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ def _shapes(ts):
if all_ends_with_qreg: # [1]
length = types[-1][-1].length
types = [t[:-1] for t in types]
else:
length = None
results = list(map(partial(reduce, jnp.promote_types), zip(*types)))
return results + ([AbstractQreg(length)] if all_ends_with_qreg else [])

Expand Down
5 changes: 4 additions & 1 deletion frontend/catalyst/third_party/oqc/src/OQCDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ void OQCDevice::PartialCounts(DataView<double, 1> &eigvals, DataView<int64_t, 1>
// After this poitn everything is unsupported
auto OQCDevice::AllocateQubit() -> QubitIdType { RT_FAIL("Unsupported functionality"); }
void OQCDevice::PrintState() { RT_FAIL("Unsupported functionality"); }
void OQCDevice::SetState(std::vector<std::complex<double>>) { RT_FAIL("Unsupported functionality"); }
void OQCDevice::SetState(std::vector<std::complex<double>>)
{
RT_FAIL("Unsupported functionality");
}

void OQCDevice::Counts(DataView<double, 1> &eigvals, DataView<int64_t, 1> &counts, size_t shots)
{
Expand Down

0 comments on commit 93e195c

Please sign in to comment.