question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for Projectors

See original GitHub issue

Is your feature request related to a use case or problem? Please describe.

This is related to expanding functionality in TFQ here ( https://github.com/tensorflow/quantum/issues/357 )

Describe the solution you’d like

It would be nice to support projectors in cirq.PauliSum so that more complex (and still valid) expressions in cirq.PauliSum can be compressed to a reasonable length. Maybe something like:

# Normal functionality
a = 5.0 * cirq.Z(q0) - 2.0 * cirq.X(q0)

# New functionality
a = 5.0 * cirq.Z(q0) - 2.0 * cirq.X(q0) + cirq.OneProjector(q0) * cirq.ZeroProjector(q1)

Doing this right now in Cirq does not scale well:

def one_proj(q):
  return (1 - cirq.Z(q)) / 2

def zero_proj(q):
  return (1 + cirq.Z(q)) / 2

a = one_proj(q0) * one_proj(q1)
print(len(a._linear_dict.keys()))  # => 4

a = one_proj(q0) * one_proj(q1) * one_proj(q2)
print(len(a._linear_dict.keys()))  # => 8

a = one_proj(q0) * one_proj(q1) * one_proj(q2) * one_proj(q3)
print(len(a._linear_dict.keys()))  # => 16

.
.
.
# Anything past 20 is already 1 million elements and not all that usable anymore.

What is the urgency from your perspective for this issue? Is it blocking important work?

P1 - I need this no later than the next release (end of quarter)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:20 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
tonybruguiercommented, Dec 10, 2020

Thanks for the feedback, new version (and new URL) of the RFC at: https://tinyurl.com/ketbra

0reactions
tonybruguiercommented, Aug 19, 2021

@MichaelBroughton With #4331 and #4364 merged, is there anything left to do? If so, happy to help of course, but otherwise, maybe this issue can be closed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support for Projectors | Sony USA
Find support information for Projectors.
Read more >
Projectors | Epson® Official Support
Official Epson® projector support and customer service is always free. Download software, access FAQs, manuals, warranty, videos, product registration and ...
Read more >
Support | Projector - Panasonic Global
Support · Important Notice · Contact Information · Product Finder / Option Finder / Feature Guide / Optional Lens Guide · FAQ ·...
Read more >
Get Help From Projector People : Customer Service
Call one of our Projector Experts at 1-888-248-0675 for an answer, or click here to send a message and we will promptly reply...
Read more >
Projectors | Dell US
Connect the video cable (VGA, HDMI, or another supported video cable) from the projector to the computer. Set the video source using the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found