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.

Move Clifford Tableau Out of cirq/sim/clifford folder

See original GitHub issue

Description of the issue

Clifford Tableau is used in the Clifford simulator. Except the simulation usage, Clifford tableau can also be used to represent a general n-qubit Clifford gates, which is not supported in cirq yet. This means we need to import tableau in the ops files to define general clifford gates. However, to avoid circular import issue, cirq/sim is not supposed to be imported in the top level of cirq/ops files. As discussed in cirq-cynq meeting, the easiest solution is move the Clifford Tableau out of cirq/sim folder. (Partially, also because Clifford Tableau itself is just a state representation not simulation.)

Question is where should we move it into? cirq/qis or cirq/value seems to be the good place.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
balopatcommented, May 2, 2021

We have in the _compat module things for this, @deprecated for functions, @deprecated_class for classes for example. I would recommend doing the deprecation just in case someone is using the submodule import path, it’s pretty cheap in the end.

0reactions
daxfohlcommented, May 2, 2021

If users usually just import all of cirq that’s fine. If users frequently import submodules individually then this could cause breakages.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Move Tableau Server to Another Drive
Open a command prompt as an administrator on the initial Tableau Server computer. · Change to the scripts directory (By default: C:\Program Files\Tableau\Tableau...
Read more >
Changing the My Tableau Repository Location
Solution 2: How to find your My Tableau Repository folder and manually move it. Open your File Browser or Finder; Navigate to Documents...
Read more >
Move column from one folder to other folder
Hi All,. I am trying to move Del Hdr Binding1 from folder 08a05 Delivery Items to 08a00 Delivery Headers folder. But I am...
Read more >
Move project folders from my Default site into different Multi-sites
I am trying to figure out how to move different project folders on my server (7.0.6) to the newly created multi-site that I...
Read more >
Changing the File Path for Extracts | Tableau Software
If the workbook is a .twbx (packaged workbook) connected to an extract, any changes to the extract will be saved to the Tableau...
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