Skip to content
#

quantum-computing

Here are 1,213 public repositories matching this topic...

QuantumKatas
tcNickolas
tcNickolas commented Oct 1, 2019

Several katas could have better error messaging:

  • Superposition : the test harness could log the actual state of the system after prep vs the expected state before asserting that they are the same (the change would add state prep and logging using DumpMachine to AssertEqualOnZeroState)
  • BasicGates : a similar improvement, but a bit more extra code to write a unified test wrapper
Cirq
vtomole
vtomole commented Jul 14, 2021

Is your feature request related to a use case or problem? Please describe.
I need a function that takes in a state_vector and returns the probabilities of it's amplitudes.

Describe the solution you'd like
Add a def state_vector_to_probabilities() to
https://github.com/quantumlib/Cirq/blob/master/cirq-core/cirq/value/probability.py

**[optional] Describe alternatives/workaround

obriente
obriente commented Jul 30, 2020

To get this codebase up to standard, we need to add type hints. At the very least, perhaps we should start insisting that all new code has type hints added, but moreover we need to add typing to the code that currently exists.

This is a pretty large project, but luckily it can be done incrementally - I believe at this point it's a stretch goal for v1, if anyone wants to help it would be much ap

BOBO1997
BOBO1997 commented Apr 12, 2021

Is your feature request related to a problem? Please describe.
I would like to check the behavior of the parameter index in the function QubitCircuit.add_gate()

In qutip.qip.QubitCircuit.add_gate(), there is a optional list type attribute called index.
This seems to be used to insert gates in the middle of the gate list (qutip.qip.QubitCircuit.gates).
The corresponding code is

pennylane
albi3ro
albi3ro commented Jul 7, 2021

As I was inspecting the MultiControlledX gate, I noticed how it printed out:

MultiControlledX(array([[0, 1],
       [1, 0]]), wires=[0, 1, 2, 3])

And was quite confused as to where the array came from. It turns out MultiControlledX inherits from ControlledQubitUnitary with the Unitary matrix as an X gate. This makes MultiControlledX a parametrized gate.

Worse yet, th

strawberryfields
josh146
josh146 commented Apr 19, 2021

Currently, the Bosonic backend does not support the MeasureFock and MeasureThreshold measurement operations. It would be great to add support for these two operations to the Bosonic backend.

This would entail writing functions to calculate the different probabilities up to a given cutoff, using numpy to sample from this distribution and writing update rules for updating the post measurement

qiskit-textbook
j125330
j125330 commented Jul 16, 2021

I think there is an error in the Qiskit Learning material
In https://learn.qiskit.org/course/introduction/entangled-states#the-cx-gate-revisited-20-0
the sentence „If we do the cx now, we will see an effect. It flips the target qubit to as well.“ may be wrong.
I think it is the control Qubit that flips also. So the text should be: „If we do the cx now, we will see an effect. It flips the contro

mhdavid-hrl
mhdavid-hrl commented Jan 25, 2021

There seems to be confusion between 'schedule' and 'scheduler' throughout sources and doc. They seem to be used interchangeably, which seems confusing. Is a "schedule" the same as a "scheduleR"?

For example, consider the following code snippet in src/compressor/compressor.lisp:

  (let ((lschedule (make-lscheduler)))
    ;; load up the logical schedule

The variable lschedule and

Improve this page

Add a description, image, and links to the quantum-computing topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the quantum-computing topic, visit your repo's landing page and select "manage topics."

Learn more